Aes.Create 方法

定义

创建用于执行对称算法的加密对象。

重载

Create()

创建用于执行对称算法的加密对象。

Create(String)
已过时.

创建一个加密对象,它指定用于执行对称算法所用的 AES 的实现。

Create()

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

创建用于执行对称算法的加密对象。

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

返回

Aes

用于执行对称算法的加密对象。

属性

适用于

Create(String)

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

注意

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

创建一个加密对象,它指定用于执行对称算法所用的 AES 的实现。

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

参数

algorithmName
String

要使用的 AES 的特定实现的名称。

返回

Aes

用于执行对称算法的加密对象。

属性

例外

algorithmName 参数为 null

注解

可能的 algorithmName 值为:“AES”、“AesCryptoServiceProvider”、“System.Security.Cryptography.AesCryptoServiceProvider”、“AesManaged”和“System.Security.Cryptography.AesManaged”。

适用于