SymmetricAlgorithm: CreateDecryptor

CreateDecryptor

When implemented by a class, creates a symmetric decryptor object with the specified Key property and initialization vector (IV).



 Public Function CreateDecryptor(
	  Optional ByRef RgbKey As Variant,
	  Optional ByRef RgbIV As Variant ) As ICryptoTransform

Parameters

RgbKey
[ByRef] Optional. Variant. The secret key to use for the symmetric algorithm.
RgbIV
[ByRef] Optional. Variant. The initialization vector to use for the symmetric algorithm.

Return Values

ICryptoTransform -  A symmetric decryptor object.

Remarks

This method decrypts an encrypted message created using the CreateEncryptor with the same parameters.

Exceptions

ExceptionCondition
ArgumentExceptionOnly RgbKey or RgbIV was specified.

See Also

Project CorLib Overview

Class SymmetricAlgorithm Overview

CreateEncryptor