RSA.EncryptValue(Byte[]) RSA.EncryptValue(Byte[]) RSA.EncryptValue(Byte[]) RSA.EncryptValue(Byte[]) Method

Definition

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

public:
 virtual cli::array <System::Byte> ^ EncryptValue(cli::array <System::Byte> ^ rgb);
public virtual byte[] EncryptValue (byte[] rgb);
abstract member EncryptValue : byte[] -> byte[]
override this.EncryptValue : byte[] -> byte[]
Public Overridable 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