Share via


RSA.EncryptValue Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public MustOverride Function EncryptValue ( _
    rgb As Byte() _
) As Byte()
public abstract byte[] EncryptValue(
    byte[] 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.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.