This documentation is archived and is not being maintained.

RSA.EncryptValue Method

When overridden in a derived class, encrypts the input data using the public key.

[Visual Basic]
Public MustOverride Function EncryptValue( _
   ByVal rgb() As Byte _
) As Byte()
public abstract byte[] EncryptValue(
 byte[] rgb
public: virtual unsigned char EncryptValue(
 unsigned char rgb __gc[]
)  __gc[] = 0;
public abstract function EncryptValue(
   rgb : Byte[]
) : Byte[];


The plain text to be encrypted.

Return Value

The resulting encryption of the rgb parameter as cipher text.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

RSA Class | RSA Members | System.Security.Cryptography Namespace | Cryptographic Services