C# Class JustPressPlay.Utilities.Sha256Helper

Afficher le fichier Open project: RIT-MAGIC/JustPressPlay

Méthodes publiques

Méthode 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

Méthode Description
GenerateSalt ( ) : byte[]

Method Details

HashString() public static méthode

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
Résultat void

HashStringWithSalt() public static méthode

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
Résultat string