Mono Class Library: System.Security.Cryptography.RSA Overview | Members

System.Security.Cryptography.RSA.EncryptValue Method

Raw (unpadded) encryption using the RSA public key.

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

Parameters

rgb
The data to be encrypted.

Returns

An array of bytes containing the encrypted data.

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