InMemorySymmetricSecurityKey.EncryptKey(String, Byte[]) 方法

定义

加密指定的密钥。

public:
 override cli::array <System::Byte> ^ EncryptKey(System::String ^ algorithm, cli::array <System::Byte> ^ keyData);
public override byte[] EncryptKey(string algorithm, byte[] keyData);
override this.EncryptKey : string * byte[] -> byte[]
Public Overrides Function EncryptKey (algorithm As String, keyData As Byte()) As Byte()

参数

algorithm
String

用于加密密钥的加密算法。

keyData
Byte[]

包含键的 Byte 数组。

返回

Byte[]

包含加密密钥的 Byte 数组。

例外

注解

使用类的 SecurityAlgorithms 静态字段指定算法。

适用于