RSA.EncryptValue(Byte[]) Método

Definição

Cuidado

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

Quando substituído em uma classe derivada, criptografa 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 sem formatação a ser criptografado.

Retornos

Byte[]

A criptografia resultante do rgb parâmetro como texto codificado.

Atributos

Exceções

Não há suporte para essa chamada de método. Essa exceção é lançada a partir do .NET Framework 4.6.

Comentários

No .NET Framework 4.5.2 e versões anteriores do .NET Framework, esse método foi abstract. No entanto, a única implementação por uma classe RSACryptoServiceProvider.DecryptValuederivada também gerou uma NotSupportedException exceção.

Aplica-se a

Confira também