RSA.EncryptValue(Byte[]) Método

Definição

Atenção

RSA.EncryptValue and DecryptValue are not supported and throw NotSupportedException. Use RSA.Encrypt and RSA.Decrypt instead.

Quando sobrescrito numa classe derivada, encripta os dados de entrada usando a chave pública.

public:
 virtual cli::array <System::Byte> ^ EncryptValue(cli::array <System::Byte> ^ rgb);
public:
 abstract cli::array <System::Byte> ^ EncryptValue(cli::array <System::Byte> ^ rgb);
[System.Obsolete("RSA.EncryptValue and DecryptValue are not supported and throw NotSupportedException. Use RSA.Encrypt and RSA.Decrypt instead.", DiagnosticId="SYSLIB0048", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public virtual byte[] EncryptValue(byte[] rgb);
public virtual byte[] EncryptValue(byte[] rgb);
public abstract byte[] EncryptValue(byte[] rgb);
[<System.Obsolete("RSA.EncryptValue and DecryptValue are not supported and throw NotSupportedException. Use RSA.Encrypt and RSA.Decrypt instead.", DiagnosticId="SYSLIB0048", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member EncryptValue : byte[] -> byte[]
override this.EncryptValue : byte[] -> byte[]
abstract member EncryptValue : byte[] -> byte[]
override this.EncryptValue : byte[] -> byte[]
abstract member EncryptValue : byte[] -> byte[]
Public Overridable Function EncryptValue (rgb As Byte()) As Byte()
Public MustOverride Function EncryptValue (rgb As Byte()) As Byte()

Parâmetros

rgb
Byte[]

O texto simples a ser encriptado.

Devoluções

Byte[]

A encriptação resultante do rgb parâmetro como texto cifrado.

Atributos

Exceções

Esta chamada de método não é suportada. Esta exceção é lançada a partir do .NET Framework 4.6.

Observações

No .NET Framework 4.5.2 e versões anteriores do .NET Framework, este método era abstract. No entanto, a única implementação por uma classe derivada, RSACryptoServiceProvider.DecryptValue, também fez uma NotSupportedException exceção.

Aplica-se a

Ver também