RijndaelManaged: CreateEncryptor

CreateEncryptor

Returns a new cipher used to encrypt data.



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

Parameters

RgbKey
[ByRef] Optional. Variant. A supplied byte array used as the secret key.
RgbIV
[ByRef] Optional. Variant. A supplied byte array used for the Initialization Vector (IV).

Return Values

ICryptoTransform -  An ICryptoTransform (RijndaelManagedTransform) object used to encrypt data.

Remarks

Both parameters must be either supplied or missing. A single parameter will throw an exception.

If no parameters are supplied then the key and IV will be retrieved through the Key and IV properties.

See Also

Project CorLib Overview

Class RijndaelManaged Overview

RijndaelManagedTransform