共用方式為


SymmetricKeyAlgorithmProvider.CreateSymmetricKey(IBuffer) 方法

定義

建立對稱金鑰。

public:
 virtual CryptographicKey ^ CreateSymmetricKey(IBuffer ^ keyMaterial) = CreateSymmetricKey;
CryptographicKey CreateSymmetricKey(IBuffer const& keyMaterial);
public CryptographicKey CreateSymmetricKey(IBuffer keyMaterial);
function createSymmetricKey(keyMaterial)
Public Function CreateSymmetricKey (keyMaterial As IBuffer) As CryptographicKey

參數

keyMaterial
IBuffer

用來產生金鑰的資料。 您可以呼叫 GenerateRandom 方法來建立隨機金鑰資料。

傳回

對稱金鑰。

適用於