語言

SecurityKeyElement.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[]

一個包含加密金鑰的陣列。

適用於