Archived Forum Post

Index of archived forum posts


RandomizeIV() question for C# .net crypt2 library

Nov 30 '14 at 10:58

What does this function do exactly? How does it encode the byte array to IV?

Given an encrypted string as a result of "DecryptStringENC()" that was 32 bytes long and had a 16 byte IV how would I re-generate the IV I got from the "RandomizeIV()" function considering the following settings.

algo = aes block = 128 keysize = 128 mode = CBC encoding scheme = "hex"


It generates a random IV that can be retrieved using the GetEncodedIv method in "base64", "hex", "quoted-printable", or "url" format, or as an array of bytes us the IV property.