SHA1.Create Method

Definition

Allows specific implementations of this abstract class to be instantiated.

Overloads

Create()

Creates an instance of the default implementation of SHA1.

Create(String)

Creates an instance of the specified implementation of SHA1.

Create()

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

Create(String)

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

Parameters

hashName
String

The name of the specific implementation of SHA1 to be used.

Returns

A new instance of SHA1 using the specified implementation.

Remarks

Due to collision problems with SHA1, Microsoft recommends a security model based on SHA256 or better.

See also

Applies to