RSA.EncryptValue Method (Byte[])

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 byte[] EncryptValue(
	byte[] rgb
)

Parameters

rgb
Type: System.Byte[]

The plain text to be encrypted.

Return Value

Type: 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: