MD5.Create 方法

定義

允許建立這個抽象類別的指定實作。Allows specific implementations of this abstract class to be created.

多載

Create()

建立 MD5 雜湊演算法之預設實作的執行個體。Creates an instance of the default implementation of the MD5 hash algorithm.

Create(String)

建立 MD5 雜湊演算法之指定實作的執行個體。Creates an instance of the specified implementation of the MD5 hash algorithm.

Create()

建立 MD5 雜湊演算法之預設實作的執行個體。Creates an instance of the default implementation of the MD5 hash algorithm.

public:
 static System::Security::Cryptography::MD5 ^ Create();
public static System.Security.Cryptography.MD5 Create ();
static member Create : unit -> System.Security.Cryptography.MD5
Public Shared Function Create () As MD5

傳回

MD5

MD5 雜湊演算法的新執行個體。A new instance of the MD5 hash algorithm.

例外狀況

在已啟用美國聯邦資訊處理標準 (FIPS) 模式的情況下使用演算法,但它與 FIPS 不相容。The algorithm was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.

另請參閱

適用於

Create(String)

建立 MD5 雜湊演算法之指定實作的執行個體。Creates an instance of the specified implementation of the MD5 hash algorithm.

public:
 static System::Security::Cryptography::MD5 ^ Create(System::String ^ algName);
public static System.Security.Cryptography.MD5? Create (string algName);
public static System.Security.Cryptography.MD5 Create (string algName);
static member Create : string -> System.Security.Cryptography.MD5
Public Shared Function Create (algName As String) As MD5

參數

algName
String

要使用之 MD5 的特定實作的名稱。The name of the specific implementation of MD5 to use.

傳回

MD5

指定之 MD5 實作的新執行個體。A new instance of the specified implementation of MD5.

例外狀況

algName 參數描述的演算法,在聯邦資訊處理標準 (FIPS) 模式啟用的情況下使用,但是和 FIPS 並不相容。The algorithm described by the algName parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.

備註

algName 的可能值為:System.Security.Cryptography.MD5MD5System.Security.Cryptography.MD5CryptoServiceProviderSystem.Security.Cryptography.MD5ManagedPossible values for algName are: System.Security.Cryptography.MD5, MD5, System.Security.Cryptography.MD5CryptoServiceProvider, and System.Security.Cryptography.MD5Managed.

另請參閱

適用於