{"id":92,"date":"2008-11-18T08:22:40","date_gmt":"2008-11-18T15:22:40","guid":{"rendered":"http:\/\/cknotes.com\/?p=92"},"modified":"2008-11-18T08:50:41","modified_gmt":"2008-11-18T15:50:41","slug":"setting-the-initialization-vector-for-encryption","status":"publish","type":"post","link":"https:\/\/cknotes.com\/setting-the-initialization-vector-for-encryption\/","title":{"rendered":"Setting the Initialization Vector for Encryption"},"content":{"rendered":"<p><strong>Question:<\/strong><br \/>\nWe&#8217;re trying to sync up our Chilkat component with another encryption component but can&#8217;t get the initialization vector to match. Is that compiled into the Chilkat module, or can it be changed via a component property?<\/p>\n<p><strong>Answer:<\/strong><br \/>\nYes, the Chilkat encryption component provides the &#8220;IV&#8221; property.  The type depends on the programming language:<\/p>\n<pre>\r\nActiveX:  Variant containing byte array.\r\n.NET (C#, VB.NET): byte array\r\nC++: CkByteData object (containing the bytes)\r\nPerl, Ruby, Python, etc.: byte array\r\n<\/pre>\n<p>The initialization vector can also be set via the SetEncodedIV method.  It allows you to pass the IV bytes as an encoded string using Hex, Base64, etc.<br \/>\n<strong><br \/>\nQuestion #2<\/strong><br \/>\nIf no IV is set, what is the default IV? In our code we weren&#8217;t setting the IV, only the key. What would our IV be in this case? <\/p>\n<p><strong>Answer:<\/strong><br \/>\nThe default IV is all zero&#8217;s (i.e. null bytes).  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: We&#8217;re trying to sync up our Chilkat component with another encryption component but can&#8217;t get the initialization vector to match. Is that compiled into the Chilkat module, or can it be changed via a component property? Answer: Yes, the Chilkat encryption component provides the &#8220;IV&#8221; property. The type depends on the programming language: ActiveX: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[141,140],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-initialization-vector","tag-iv"],"_links":{"self":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":0,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"wp:attachment":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}