RSA.EncryptValue(Byte[]) Method

Definition

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

public:
 abstract cli::array <System::Byte> ^ EncryptValue(cli::array <System::Byte> ^ rgb);
public abstract byte[] EncryptValue (byte[] rgb);
abstract member EncryptValue : byte[] -> byte[]
Public MustOverride Function EncryptValue (rgb As Byte()) As Byte()

Parameters

rgb
Byte[]

The plain text to be encrypted.

Returns

Byte[]

The resulting encryption of the rgb parameter as cipher text.

Exceptions

This method call is not supported. This exception is thrown starting with the .NET Framework 4.6.

Remarks

In the .NET Framework 4.5.2 and earlier versions of the .NET Framework, this method was abstract. However, the only implementation by a derived class, RSACryptoServiceProvider.DecryptValue, also threw a NotSupportedException exception.

Applies to

See also