System.Security.Cryptography.RC2CryptoServiceProvider Class

Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the System.Security.Cryptography.RC2 algorithm. This class cannot be inherited.

See Also: RC2CryptoServiceProvider Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public sealed class RC2CryptoServiceProvider : RC2

Remarks

The System.Security.Cryptography.RC2CryptoServiceProvider implementation supports key lengths from 40 bits to 128 bits in increments of 8 bits.

The System.Security.Cryptography.RC2CryptoServiceProvider object is a block cipher that encrypts and decrypts data in blocks of 8 bytes. This class pads the final block of data if it is less than 8 bytes. As a result of this padding, the length of encrypted data could be greater than the original plaintext.

Note that the System.Security.Cryptography.RC2CryptoServiceProvider object does not use salt.

Note:

A newer symmetric encryption algorithm, Advanced Encryption Standard (AES), is available. Consider using the System.Security.Cryptography.Aes algorithm and its derived classes instead of the System.Security.Cryptography.RC2CryptoServiceProvider class. Use System.Security.Cryptography.RC2CryptoServiceProvider only for compatibility with legacy applications and data.

Requirements

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