SHA1.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
允許實例化此抽象類別的特定實作。
多載
| 名稱 | Description |
|---|---|
| Create() |
建立 的 SHA1預設實作實例。 |
| Create(String) |
已淘汰.
建立指定實作 SHA1的實例。 |
Create()
- 來源:
- SHA1.cs
- 來源:
- SHA1.cs
- 來源:
- 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
備註
預設 SHA1 實作為 SHA1CryptoServiceProvider。
另請參閱
適用於
Create(String)
- 來源:
- SHA1.cs
- 來源:
- SHA1.cs
- 來源:
- 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);
[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 或更高層級的安全性模型。