Share via


IKey.CreateEncryptor 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 ^ 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

Returns

An IAuthenticatedEncryptor.

Applies to