RSA.EncryptValue(Byte[]) Methode

Definition

Achtung

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

Verschlüsselt beim Überschreiben in einer abgeleiteten Klasse die Eingabedaten mithilfe des öffentlichen Schlüssels.

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()

Parameter

rgb
Byte[]

Der zu verschlüsselnde Klartext.

Gibt zurück

Byte[]

Die resultierende Verschlüsselung des rgb-Parameters als verschlüsselter Text.

Attribute

Ausnahmen

Dieser Methodenaufruf wird nicht unterstützt. Diese Ausnahme wird ab dem .NET Framework 4.6 ausgelöst.

Hinweise

In .NET Framework Version 4.5.2 und früheren Versionen des .NET Framework war abstractdiese Methode . Die einzige Implementierung durch eine abgeleitete Klasse hat RSACryptoServiceProvider.DecryptValuejedoch auch eine NotSupportedException Ausnahme ausgelöst.

Gilt für:

Weitere Informationen