Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SHA512.Create Method (String)

Creates an instance of a specified implementation of SHA512.

Namespace:  System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public static SHA512 Create(
	string hashName
)

Parameters

hashName
Type: System.String

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

Return Value

Type: System.Security.Cryptography.SHA512
A new instance of SHA512 using the specified implementation.

ExceptionCondition
TargetInvocationException

The algorithm described by the hashName parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.

Possible values for hashName are SHA512, System.Security.Cryptography.SHA51, System.Security.Cryptography.SHA512Managed, and System.Security.Cryptography.SHA512CryptoServiceProvider.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft