語言

Aes.Create 方法

定義

建立一個用於執行對稱演算法的密碼物件。

多載

名稱 Description
Create()

建立一個用於執行對稱演算法的密碼物件。

Create(String)
已淘汰.

建立一個密碼物件,指定用於執行對稱演算法的 AES 實作方式。

Create()

來源:
Aes.cs
來源:
Aes.cs
來源:
Aes.cs
來源:
Aes.cs
來源:
Aes.cs

建立一個用於執行對稱演算法的密碼物件。

public:
 static System::Security::Cryptography::Aes ^ Create();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.Aes Create();
public static System.Security.Cryptography.Aes Create();
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : unit -> System.Security.Cryptography.Aes
static member Create : unit -> System.Security.Cryptography.Aes
Public Shared Function Create () As Aes

傳回

Aes

用於執行對稱演算法的密碼學物件。

屬性

適用於

Create(String)

來源:
Aes.cs
來源:
Aes.cs
來源:
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);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
[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);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.Aes? Create(string algorithmName);
public static System.Security.Cryptography.Aes Create(string algorithmName);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
[<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
static member Create : string -> System.Security.Cryptography.Aes
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
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」。

適用於