RSA.EncryptValue(Byte[]) Metodo
In questo articolo
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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.
public:
virtual cli::array <System::Byte> ^ EncryptValue(cli::array <System::Byte> ^ rgb);
public:
abstract cli::array <System::Byte> ^ EncryptValue(cli::array <System::Byte> ^ rgb);
public virtual 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}")]
public virtual byte[] EncryptValue(byte[] rgb);
public abstract byte[] EncryptValue(byte[] rgb);
abstract member EncryptValue : byte[] -> byte[]
override this.EncryptValue : byte[] -> byte[]
[<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[]
Public Overridable Function EncryptValue (rgb As Byte()) As Byte()
Public MustOverride Function EncryptValue (rgb As Byte()) As Byte()
- rgb
- Byte[]
Testo normale da crittografare.
Risultato della crittografia del parametro rgb
sotto forma di testo crittografato.
- Attributi
Questa chiamata di metodo non è supportata. Questa eccezione viene generata a partire da .NET Framework 4.6.
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 .
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 |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: