RSA.EncryptValue(Byte[]) Methode

Definition

Achtung

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

Wenn sie in einer abgeleiteten Klasse überschrieben werden, werden die Eingabedaten mithilfe des öffentlichen Schlüssels verschlüsselt.

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

Parameter

rgb
Byte[]

Der zu verschlüsselnde Nur-Text.

Gibt zurück

Byte[]

Die resultierende Verschlüsselung des rgb Parameters als Chiffretext.

Attribute

Ausnahmen

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

Hinweise

In den .NET Framework 4.5.2 und früheren Versionen des .NET Frameworks wurde diese Methode abstract. Die einzige Implementierung einer abgeleiteten Klasse hat RSACryptoServiceProvider.DecryptValuejedoch auch eine NotSupportedException Ausnahme ausgelöst.

Gilt für:

Weitere Informationen