login about faq

I'm using Chilkat.Crypt2 with ASP.NET and C#. I'm using CipherMode as CBC, and noticed I need to set SetEncodedIV. My question is should SetEncodedIV be randomly generated ?

Because my SetEncodedKey is my secret randomly key ?

asked Oct 04 '13 at 15:22

Tommo1977's gravatar image


The same IV (initialization vector) would need to be used when decrypting. Therefore, if a random IV is used, then in addition to the secret key, the bytes of the IV must be provided to the counterparty doing the decryption.

One other idea is to use an IV that is computed from the secret key, such as a hash of the correct IV length. Of course, in this case the counterparty would also need to duplicate this computation to reconstruct the IV from the secret key.


answered Oct 08 '13 at 08:12

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 04 '13 at 15:22

Seen: 1,820 times

Last updated: Oct 08 '13 at 08:12

powered by OSQA