MD5.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
允许创建此抽象类的特定实现。
重载
| 名称 | 说明 |
|---|---|
| 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 。
- 属性
例外
该算法与已启用联邦信息处理标准(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
参数
返回
指定实现 MD5的一个新实例。
- 属性
例外
参数描述的 algName 算法与已启用联邦信息处理标准(FIPS)模式一起使用,但与 FIPS 不兼容。
注解
algName 的可能值为:System.Security.Cryptography.MD5、MD5、System.Security.Cryptography.MD5CryptoServiceProvider 和 System.Security.Cryptography.MD5Managed。