RSA.EncryptValue(Byte[]) 方法
本文內容
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
RSA.EncryptValue and DecryptValue are not supported and throw NotSupportedException. Use RSA.Encrypt and RSA.Decrypt instead.
在衍生類別中覆寫時,使用公開金鑰加密輸入資料。
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[]
要加密的純文字。
Byte[]
所產生之密碼文字的 rgb
參數加密。
- 屬性
不支援這個方法呼叫。 從 .NET Framework 4.6 開始,會擲回此例外狀況。
在 .NET Framework 4.5.2 和舊版 .NET Framework 中,這個方法是 abstract
。 不過,衍生類別 RSACryptoServiceProvider.DecryptValue的唯一實作也會擲回 NotSupportedException 例外狀況。
產品 | 版本 (已淘汰) |
---|---|
.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 |