Aes.Create 方法
定义
创建用于执行对称算法的加密对象。Creates a cryptographic object that is used to perform the symmetric algorithm.
重载
| Create() |
创建用于执行对称算法的加密对象。Creates a cryptographic object that is used to perform the symmetric algorithm. |
| Create(String) |
创建一个加密对象,它指定用于执行对称算法所用的 AES 的实现。Creates a cryptographic object that specifies the implementation of AES to use to perform the symmetric algorithm. |
Create()
创建用于执行对称算法的加密对象。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 ();
static member Create : unit -> System.Security.Cryptography.Aes
Public Shared Function Create () As Aes
返回
用于执行对称算法的加密对象。A cryptographic object that is used to perform the symmetric algorithm.
适用于
Create(String)
创建一个加密对象,它指定用于执行对称算法所用的 AES 的实现。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);
public static System.Security.Cryptography.Aes Create (string algorithmName);
static member Create : string -> System.Security.Cryptography.Aes
Public Shared Function Create (algorithmName As String) As Aes
参数
- algorithmName
- String
要使用的 AES 的特定实现的名称。The name of the specific implementation of AES to use.
返回
用于执行对称算法的加密对象。A cryptographic object that is used to perform the symmetric algorithm.
例外
algorithmName 参数为 null。The algorithmName parameter is null.
注解
可能 algorithmName 的值包括: "AES"、"AesCryptoServiceProvider"、"AesCryptoServiceProvider"、"AesManaged" 和 "",以及 "AesManaged"。Possible algorithmName values are: "AES", "AesCryptoServiceProvider", "System.Security.Cryptography.AesCryptoServiceProvider", "AesManaged", and "System.Security.Cryptography.AesManaged".