SHA1.Create 方法

定義

允許執行個體化這個抽象類別的指定實作。

多載

Create()

建立 SHA1 的預設實作的執行個體。

Create(String)
已淘汰.

建立 SHA1 之指定實作的執行個體。

Create()

來源:
SHA1.cs
來源:
SHA1.cs
來源:
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)

來源:
SHA1.cs
來源:
SHA1.cs
來源:
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);
public static System.Security.Cryptography.SHA1? Create (string hashName);
[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);
static member Create : string -> System.Security.Cryptography.SHA1
[<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
Public Shared Function Create (hashName As String) As SHA1

參數

hashName
String

要使用之 SHA1 的特定實作的名稱。

傳回

SHA1 的新執行個體,使用指定實作。

屬性

備註

由於 SHA1 的衝突問題,Microsoft 建議您使用以 SHA256 或更好的加密方式為基礎的安全性模型。

另請參閱

適用於