System.Security.Cryptography.RijndaelManaged.CreateEncryptor Method

Creates a symmetric System.Security.Cryptography.Rijndael encryptor object with the specified SymmetricAlgorithm.Key and initialization vector (SymmetricAlgorithm.IV).

Syntax

public override ICryptoTransform CreateEncryptor (byte[] rgbKey, byte[] rgbIV)

Parameters

rgbKey
The secret key to be used for the symmetric algorithm. The key size must be 128, 192, or 256 bits.
rgbIV
The IV to be used for the symmetric algorithm.

Returns

A symmetric System.Security.Cryptography.Rijndael encryptor object.

Remarks

Use the RijndaelManaged.CreateDecryptor(Byte[], Byte[]) overload with the same signature to decrypt the result of this method.

The rgbkey size must be 128, 192, or 256 bits.

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0