Class HashExtensions
- Namespace
- Duende.IdentityServer.Models
- Assembly
- Duende.IdentityServer.dll
Extension methods for hashing strings
public static class HashExtensions
- Inheritance
-
HashExtensions
- Inherited Members
Methods
Sha256(byte[])
Creates a SHA256 hash of the specified input.
public static byte[] Sha256(this byte[] input)
Parameters
input
byte[]The input.
Returns
- byte[]
A hash.
Sha256(string)
Creates a SHA256 hash of the specified input.
public static string Sha256(this string input)
Parameters
input
stringThe input.
Returns
- string
A hash
Sha512(string)
Creates a SHA512 hash of the specified input.
public static string Sha512(this string input)
Parameters
input
stringThe input.
Returns
- string
A hash