IKey.CreateEncryptorInstance 方法

定义

创建一个 IAuthenticatedEncryptor 实例,该实例可用于将数据加密到此密钥并从中解密数据。

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

返回

IAuthenticatedEncryptor。

适用于