The SetInitVectorFromPassPhrase method applies a hash function to a PassPhrase and then sets the InitVector property equal to the resulting hash value.
Before calling this method, you may want to change the default hashing algorithm (or its parameters) by using the HashingMethod property.
The PassPhrase for the initialization vector can be chosen with less care than the one required for generating a Secret Key because it is not encrypted and available in the encrypted data stream for all to see. Just ensure that the PassPhrase is different each time you call this method and that the PassPhrase is different than the one used as a secret key.
Parameters | Description |
---|---|
sPassPhrase | The PassPhrase to hash. There must be at least 1 character in the specified PassPhrase. |
None
Declaration (DXceedEncryption and IXceedEncryption) | Copy Code |
---|---|
|