Xceed Encryption Library Documentation
Xceed Encryption control reference / Encryption Method objects / XceedRijndaelEncryptionMethod object / SetInitVectorFromPassPhrase method
In This Topic
    SetInitVectorFromPassPhrase method
    In This Topic

    Description

    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
     

    Parameters Description
    sPassPhrase  The PassPhrase to hash. There must be at least 1 character in the specified PassPhrase.

    Return value

    None

    Associated properties

    HashingMethod, InitVector

    Declaration (DXceedEncryption and IXceedEncryption) Copy Code

    HRESULT SetInitVectorFromPassPhrase( [in] BSTR sPassPhrase );