Table of Contents

Class HashExtensions

Namespace
Fdyay.IdentityServer
Assembly
Fdyay.IdentityServer.Core.dll

Hashing helpers for shared secrets. Uses SHA-256 (not custom crypto).

public static class HashExtensions
Inheritance
HashExtensions
Inherited Members

Methods

Sha256(string)

Returns the base64-encoded SHA-256 hash of the input.

public static string Sha256(this string input)

Parameters

input string

Returns

string

Sha512(string)

Returns the base64-encoded SHA-512 hash of the input.

public static string Sha512(this string input)

Parameters

input string

Returns

string