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
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.
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.