System.Security.Cryptography.TripleDESCryptoServiceProvider.CreateEncryptor Method

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

Syntax

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

Parameters

rgbKey
The secret key to use for the symmetric algorithm.
rgbIV
The initialization vector to use for the symmetric algorithm.

Returns

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

Remarks

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

Requirements

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