SecurityServices for .NET 2.0 Documentation

RC4CryptoServiceProvider.CreateDecryptorMethod(Byte[], Byte[])

[This is preliminary documentation and subject to change.]

Creates a symmetric decryptor object with the specified Key.

publicoverrideICryptoTransformCreateDecryptor(
Byte[]rgbKey,
Byte[]rgbIV
);

Parameters

Byte[]
The secret key to be used for the symmetric algorithm.
Byte[]
Not used in RC4. It can be a null reference or a byte array with a length less than 2.

Return Value

A symmetric decryptor object.

Remarks

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

Exceptions

Exception Type Condition
ObjectDisposedException The object is disposed.
ArgumentNullException rgbKey is a null reference (Nothing in Visual Basic).
CryptographicException

See Also

RC4CryptoServiceProvider Class | Org.Mentalis.SecurityServices.Cryptography Namespace | RC4CryptoServiceProvider.CreateDecryptor Overload List