System.Security.Cryptography.SymmetricAlgorithm.CreateDecryptor Method

When overridden in a derived class, creates a symmetric decryptor object with the specified SymmetricAlgorithm.Key property and initialization vector (SymmetricAlgorithm.IV).

Syntax

public abstract ICryptoTransform CreateDecryptor (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 decryptor object.

Remarks

This method decrypts an encrypted message created using the SymmetricAlgorithm.CreateEncryptor overload with the same parameters.

Requirements

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