<PackageReference Include="System.Security.Cryptography.Cng" Version="5.0.0-preview.8.20407.11" />

System.Security.Cryptography.AesCng

public sealed class AesCng : Aes
Provides a Cryptography Next Generation (CNG) implementation of the Advanced Encryption Standard (AES) algorithm.
public AesCng()

Initializes a new instance of the AesCng class with an ephemeral key.

public AesCng(string keyName)

Initializes a new instance of the AesCng class with the specified key name, which represents an existing persisted AES key.

public AesCng(string keyName, CngProvider provider)

Initializes a new instance of the AesCng class with the specified key name, which represents an existing persisted AES key, and the specified key storage provider (KSP).

public AesCng(string keyName, CngProvider provider, CngKeyOpenOptions openOptions)

Initializes a new instance of the AesCng class with the specified key name, which represents an existing persisted AES key, the specified key storage provider (KSP) and key open options.