SHA1.Create Метод

Определение

Позволяет создавать экземпляры конкретных реализаций этого абстрактного класса.

Перегрузки

Имя Описание
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.

Комментарии

Реализация по умолчанию SHA1SHA1CryptoServiceProvider.

См. также раздел

Применяется к

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

Параметры

hashName
String

Имя используемой реализации SHA1 .

Возвращаемое значение

Новый экземпляр использования указанной SHA1 реализации.

Атрибуты

Комментарии

Из-за проблем с столкновением с SHA-1 корпорация Майкрософт рекомендует модель безопасности на основе SHA-256 или более поздней версии.

См. также раздел

Применяется к