RSA.EncryptValue(Byte[]) Metodo

Definizione

Attenzione

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

Quando è sottoposto a override in una classe derivata, decrittografa i dati di input usando la chiave pubblica.

C#
public virtual byte[] EncryptValue(byte[] rgb);
C#
[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);
C#
public abstract byte[] EncryptValue(byte[] rgb);

Parametri

rgb
Byte[]

Testo normale da crittografare.

Restituisce

Byte[]

Risultato della crittografia del parametro rgb sotto forma di testo crittografato.

Attributi

Eccezioni

Questa chiamata di metodo non è supportata. Questa eccezione viene generata a partire da .NET Framework 4.6.

Commenti

In .NET Framework 4.5.2 e versioni precedenti di .NET Framework questo metodo era abstract. Tuttavia, l'unica implementazione di una classe derivata, RSACryptoServiceProvider.DecryptValue, ha anche generato un'eccezione NotSupportedException .

Si applica a

Prodotto Versioni (Obsoleto)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 (8, 9)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Vedi anche