SymmetricAlgorithm: GenerateIV

GenerateIV

When implemented by a class, generates a random initialization vector (IV) to use for the algorithm.



 Public Sub GenerateIV ( )

Remarks

In general, there is no reason to use this method, because CreateEncryptor() automatically generates both an initialization vector and a key. However, you may want to use the GenerateIV() method to reuse a symmetric algorithm instance with a different initialization vector.

See Also

Project CorLib Overview

Class SymmetricAlgorithm Overview