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

Tommo1977
1111


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.

link

answered Oct 08 '13 at 08:12

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×33

Asked: Oct 04 '13 at 15:22

Seen: 1,135 times

Last updated: Oct 08 '13 at 08:12

powered by OSQA