RSA.EncryptValue(Byte[]) Yöntem

Tanım

Dikkat

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

Türetilmiş bir sınıfta geçersiz kılındığında, giriş verilerini ortak anahtarı kullanarak şifreler.

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

Parametreler

rgb
Byte[]

Şifrelenecek düz metin.

Döndürülenler

Byte[]

Parametrenin şifreleme metni olarak elde edilen rgb şifrelemesi.

Öznitelikler

Özel durumlar

Bu yöntem çağrısı desteklenmez. Bu özel durum, .NET Framework 4.6 ile başlayarak oluşturulur.

Açıklamalar

.NET Framework'ün .NET Framework 4.5.2 ve önceki sürümlerinde bu yöntem abstract. Ancak, türetilmiş bir sınıfı tarafından tek uygulama olan, RSACryptoServiceProvider.DecryptValueayrıca bir NotSupportedException özel durum attı.

Şunlara uygulanır

Ayrıca bkz.