语言

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

定义

在派生类中重写时,加密指定的密钥。

public:
 abstract cli::array <System::Byte> ^ EncryptKey(System::String ^ algorithm, cli::array <System::Byte> ^ keyData);
public abstract byte[] EncryptKey(string algorithm, byte[] keyData);
abstract member EncryptKey : string * byte[] -> byte[]
Public MustOverride Function EncryptKey (algorithm As String, keyData As Byte()) As Byte()

参数

algorithm
String

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

keyData
Byte[]

包含键的 Byte 数组。

返回

Byte[]

包含加密密钥的 Byte 数组。

注解

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

适用于