共用方式為


Aes.Create 方法

定義

建立用來執行對稱演算法的密碼編譯物件。

多載

Create()

建立用來執行對稱演算法的密碼編譯物件。

Create(String)
已淘汰.

建立密碼編譯物件,指定執行對稱演算法所使用的 AES 實作。

Create()

來源:
Aes.cs
來源:
Aes.cs
來源:
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)

來源:
Aes.cs
來源:
Aes.cs
來源:
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”。

適用於