RSA.EncryptValue(Byte[]) メソッド

定義

注意事項

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 スローしました。

適用対象

こちらもご覧ください