SHA1.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows specific implementations of this abstract class to be instantiated.
Overloads
Create() |
Creates an instance of the default implementation of SHA1. |
Create(String) |
Obsolete.
Creates an instance of the specified implementation of SHA1. |
Create()
- Source:
- SHA1.cs
- Source:
- SHA1.cs
- Source:
- SHA1.cs
Creates an instance of the default implementation of 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
Returns
A new instance of SHA1.
Remarks
The default implementation of SHA1 is SHA1CryptoServiceProvider.
See also
Applies to
Create(String)
- Source:
- SHA1.cs
- Source:
- SHA1.cs
- Source:
- SHA1.cs
Caution
Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.
Creates an instance of the specified implementation of 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
Parameters
Returns
A new instance of SHA1 using the specified implementation.
- Attributes
Remarks
Due to collision problems with SHA1, Microsoft recommends a security model based on SHA256 or better.
See also
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기