MD5.Create 方法

定义

允许创建此抽象类的特定实现。

重载

名称 说明
Create()

创建哈希算法的默认实现的 MD5 实例。

Create(String)
已过时.

创建哈希算法的指定实现的 MD5 实例。

Create()

Source:
MD5.cs
Source:
MD5.cs
Source:
MD5.cs
Source:
MD5.cs
Source:
MD5.cs

创建哈希算法的默认实现的 MD5 实例。

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

返回

MD5

哈希算法的新实例 MD5

属性

例外

该算法与已启用联邦信息处理标准(FIPS)模式一起使用,但与 FIPS 不兼容。

另请参阅

适用于

Create(String)

Source:
MD5.cs
Source:
MD5.cs
Source:
MD5.cs
Source:
MD5.cs
Source:
MD5.cs

注意

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

创建哈希算法的指定实现的 MD5 实例。

public:
 static System::Security::Cryptography::MD5 ^ Create(System::String ^ algName);
[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.MD5? Create(string algName);
public static System.Security.Cryptography.MD5? Create(string algName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.MD5? Create(string algName);
public static System.Security.Cryptography.MD5 Create(string algName);
[<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.MD5
static member Create : string -> System.Security.Cryptography.MD5
[<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.MD5
Public Shared Function Create (algName As String) As MD5

参数

algName
String

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

返回

MD5

指定实现 MD5的一个新实例。

属性

例外

参数描述的 algName 算法与已启用联邦信息处理标准(FIPS)模式一起使用,但与 FIPS 不兼容。

注解

algName 的可能值为:System.Security.Cryptography.MD5MD5System.Security.Cryptography.MD5CryptoServiceProviderSystem.Security.Cryptography.MD5Managed

另请参阅

适用于