語言

RsaEncryptionCookieTransform.Encode(Byte[]) 方法

定義

編碼指定的資料。 資料會使用預設加密演算法(AES-256)加密,然後 AES 金鑰以 RSA 加密,並附加 RSA 公鑰。

public:
 override cli::array <System::Byte> ^ Encode(cli::array <System::Byte> ^ value);
public override byte[] Encode(byte[] value);
override this.Encode : byte[] -> byte[]
Public Overrides Function Encode (value As Byte()) As Byte()

參數

value
Byte[]

要編碼的資料。

傳回

Byte[]

編碼的資料。

例外狀況

value 是 null。

value 包含零位元組。

適用於