Aes.Create Method

Definition

Creates a cryptographic object that is used to perform the symmetric algorithm.

Overloads

Create()

Creates a cryptographic object that is used to perform the symmetric algorithm.

Create(String)
Obsolete.

Creates a cryptographic object that specifies the implementation of AES to use to perform the symmetric algorithm.

Create()

Source:
Aes.cs
Source:
Aes.cs
Source:
Aes.cs

Creates a cryptographic object that is used to perform the symmetric algorithm.

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.Aes Create();
C#
public static System.Security.Cryptography.Aes Create();

Returns

Aes

A cryptographic object that is used to perform the symmetric algorithm.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.3, 1.4, 1.6, 2.0, 2.1

Create(String)

Source:
Aes.cs
Source:
Aes.cs
Source:
Aes.cs

Caution

Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.

Creates a cryptographic object that specifies the implementation of AES to use to perform the symmetric algorithm.

C#
[System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.Aes? Create(string algorithmName);
C#
public static System.Security.Cryptography.Aes? Create(string algorithmName);
C#
public static System.Security.Cryptography.Aes Create(string algorithmName);

Parameters

algorithmName
String

The name of the specific implementation of AES to use.

Returns

Aes

A cryptographic object that is used to perform the symmetric algorithm.

Attributes

Exceptions

The algorithmName parameter is null.

Remarks

Possible algorithmName values are: "AES", "AesCryptoServiceProvider", "System.Security.Cryptography.AesCryptoServiceProvider", "AesManaged", and "System.Security.Cryptography.AesManaged".

Applies to

.NET 10 and other versions
Product Versions (Obsolete)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6 (7, 8, 9, 10)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1