Aes.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
static System::Security::Cryptography::Aes ^ Create();
public static System.Security.Cryptography.Aes Create ();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.Aes Create ();
static member Create : unit -> System.Security.Cryptography.Aes
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : unit -> System.Security.Cryptography.Aes
Public Shared Function Create () As Aes
Returns
A cryptographic object that is used to perform the symmetric algorithm.
- Attributes
Applies to
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.
public:
static System::Security::Cryptography::Aes ^ Create(System::String ^ algorithmName);
public static System.Security.Cryptography.Aes? Create (string algorithmName);
[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);
public static System.Security.Cryptography.Aes Create (string algorithmName);
static member Create : string -> System.Security.Cryptography.Aes
[<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}")>]
static member Create : string -> System.Security.Cryptography.Aes
Public Shared Function Create (algorithmName As String) As Aes
Parameters
- algorithmName
- String
The name of the specific implementation of AES to use.
Returns
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".