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()
[C#]
public abstract byte[] EncryptValue(
 byte[] rgb
);
[C++]
public: virtual unsigned char EncryptValue(
 unsigned char rgb __gc[]
)  __gc[] = 0;
[JScript]
public abstract function EncryptValue(
   rgb : Byte[]
) : Byte[];

Parameters

rgb
The plain text to be encrypted.

Return Value

The resulting encryption of the rgb parameter as cipher text.

Requirements

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

Show: