Share via


IKey.CreateEncryptorInstance Method

Definition

Creates an IAuthenticatedEncryptor instance that can be used to encrypt data to and decrypt data from this key.

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

Returns

An IAuthenticatedEncryptor.

Applies to