共用方式為


IKey.CreateEncryptor 方法

定義

IAuthenticatedEncryptor建立實例,此實例可用來加密資料,並從此金鑰解密資料。

public:
 Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::IAuthenticatedEncryptor ^ CreateEncryptor();
public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor CreateEncryptor ();
public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor? CreateEncryptor ();
abstract member CreateEncryptor : unit -> Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor
Public Function CreateEncryptor () As IAuthenticatedEncryptor

傳回

IAuthenticatedEncryptor

適用於