SHA1.Create 方法

定义

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

重载

Create()

创建 SHA1 的默认实现的实例。

Create(String)

创建 SHA1 的指定实现的实例。

Create()

创建 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

SHA1 的新实例。

注解

默认实现为 SHA1 SHA1CryptoServiceProvider.

另请参阅

适用于

Create(String)

创建 SHA1 的指定实现的实例。

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

参数

hashName
String

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

返回

SHA1

使用指定实现的 SHA1 的新实例。

注解

由于 SHA1 出现冲突问题,Microsoft 建议使用基于 SHA256 或更好的安全模型。

另请参阅

适用于