SecurityServices for .NET 2.0 Documentation

RijndaelCryptoServiceProvider.CreateEncryptor Method (Byte[], Byte[])

[This is preliminary documentation and subject to change.]

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

public override ICryptoTransform CreateEncryptor(
   Byte[] rgbKey,
   Byte[] rgbIV
);

Parameters

Byte[]
The secret key to be used for the symmetric algorithm.
Byte[]
The IV to be used for the symmetric algorithm.

Return Value

A symmetric Rijndael encryptor object.

Remarks

Use the CreateDecryptor overload with the same signature to decrypt the result of this method.

Exceptions

Exception Type Condition
ObjectDisposedException The object has been disposed.
ArgumentNullException inputBuffer or outputBuffer is a null reference (Nothing in Visual Basic).
CryptographicException An error occurs while creating the encryptor.

See Also

RijndaelCryptoServiceProvider Class | Org.Mentalis.SecurityServices.Cryptography Namespace | RijndaelCryptoServiceProvider.CreateEncryptor Overload List