Mentalis.org Security Library documentation

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

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

[Visual Basic]
Overrides Overloads Public Function CreateEncryptor( _
   ByVal rgbKey As Byte(), _
   ByVal rgbIV As Byte() _
) As ICryptoTransform
[C#]
public override ICryptoTransform CreateEncryptor(
   byte[] rgbKey,
   byte[] rgbIV
);

Parameters

rgbKey
The secret key to be used for the symmetric algorithm.
rgbIV
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.

See Also

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