C# Class JustPressPlay.Utilities.Sha256Helper

Datei anzeigen Open project: RIT-MAGIC/JustPressPlay

Public Methods

Method Description
HashString ( string value, string &hashedValue, string &salt ) : void

Salt and hash a string using SHA256

HashStringWithSalt ( string value, string salt ) : string

Hash a string with a set salt using SHA256

Private Methods

Method Description
GenerateSalt ( ) : byte[]

Method Details

HashString() public static method

Salt and hash a string using SHA256
public static HashString ( string value, string &hashedValue, string &salt ) : void
value string The string to hash
hashedValue string The salted hash of the input string
salt string The salt used to generate the hash
return void

HashStringWithSalt() public static method

Hash a string with a set salt using SHA256
public static HashStringWithSalt ( string value, string salt ) : string
value string The string to hash
salt string The salt to hash with
return string