RSA::EncryptValue Method (array<Byte>^)
When overridden in a derived class, encrypts the input data using the public key.
Assembly: mscorlib (in mscorlib.dll)
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.
Available since 1.1
Windows Phone Silverlight
Available since 7.1