共用方式為


SqlColumnEncryptionAzureKeyVaultProvider.EncryptColumnEncryptionKey 方法

定義

此函式會使用金鑰路徑所指定的非對稱金鑰,並使用 RSA 加密演算法加密 CEK。

public:
 override cli::array <System::Byte> ^ EncryptColumnEncryptionKey(System::String ^ masterKeyPath, System::String ^ encryptionAlgorithm, cli::array <System::Byte> ^ columnEncryptionKey);
public override byte[] EncryptColumnEncryptionKey(string masterKeyPath, string encryptionAlgorithm, byte[] columnEncryptionKey);
override this.EncryptColumnEncryptionKey : string * string * byte[] -> byte[]
Public Overrides Function EncryptColumnEncryptionKey (masterKeyPath As String, encryptionAlgorithm As String, columnEncryptionKey As Byte()) As Byte()

參數

masterKeyPath
String

Azure 金鑰保存庫中非對稱金鑰的完整路徑

encryptionAlgorithm
String

非對稱金鑰加密演算法

columnEncryptionKey
Byte[]

純文字資料行加密金鑰。

傳回

Byte[]

加密的資料行加密金鑰

適用於