SHA1.Create 方法

定义

允许实例化此抽象类的特定实现。

重载

名称 说明
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

参数

hashName
String

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

返回

使用指定实现的新实例 SHA1

属性

注解

由于 SHA-1 冲突问题,Microsoft建议基于 SHA-256 或更高版本的安全模型。

另请参阅

适用于