SHA1.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
允许实例化此抽象类的特定实现。
重载
| 名称 | 说明 |
|---|---|
| Create() |
创建默认实现的 SHA1实例。 |
| Create(String) |
已过时.
创建指定实现的 SHA1实例。 |
Create()
- Source:
- SHA1.cs
- Source:
- SHA1.cs
- Source:
- SHA1.cs
- Source:
- SHA1.cs
- Source:
- SHA1.cs
创建默认实现的 SHA1实例。
public:
static System::Security::Cryptography::SHA1 ^ Create();
public static System.Security.Cryptography.SHA1 Create();
static member Create : unit -> System.Security.Cryptography.SHA1
Public Shared Function Create () As SHA1
返回
的一个新实例 SHA1。
注解
默认实现为 SHA1SHA1CryptoServiceProvider.
另请参阅
适用于
Create(String)
- Source:
- SHA1.cs
- Source:
- SHA1.cs
- Source:
- SHA1.cs
- Source:
- SHA1.cs
- Source:
- SHA1.cs
注意
Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.
创建指定实现的 SHA1实例。
public:
static System::Security::Cryptography::SHA1 ^ Create(System::String ^ hashName);
[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.SHA1? Create(string hashName);
public static System.Security.Cryptography.SHA1? Create(string hashName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.SHA1? Create(string hashName);
public static System.Security.Cryptography.SHA1 Create(string hashName);
[<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.SHA1
static member Create : string -> System.Security.Cryptography.SHA1
[<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.SHA1
Public Shared Function Create (hashName As String) As SHA1
参数
返回
使用指定实现的新实例 SHA1 。
- 属性
注解
由于 SHA-1 冲突问题,Microsoft建议基于 SHA-256 或更高版本的安全模型。