System.Security.Cryptography.RSA.EncryptValue Method

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

Syntax

public abstract byte[] EncryptValue (byte[] rgb)

Parameters

rgb
The plain text to be encrypted.

Returns

The resulting encryption of the rgb parameter as cipher text.

Remarks

Direct (raw) encryption (i.e. without padding) is discouraged due to high security risks.

Requirements

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