RSA::EncryptValue Method (array<Byte>^)

 

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

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual array<unsigned char>^ EncryptValue(
	array<unsigned char>^ rgb
)

Parameters

rgb
Type: array<System::Byte>^

The plain text to be encrypted.

Return Value

Type: array<System::Byte>^

The resulting encryption of the rgb parameter as cipher text.

Exception Condition
NotSupportedException

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

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.

.NET Framework
Available since 1.1
Windows Phone Silverlight
Available since 7.1
Return to top
Show: