Skip to content

Instantly share code, notes, and snippets.

@mclasson
Last active Dec 19, 2015
Embed
What would you like to do?
var keyAndSalt = Hash.Generator.Generate("P@ssword2013");
bool isEqual1 = Hash.Generator.Validate(keyAndSalt.Password, keyAndSalt.Salt, "Password2013");
//isEqual1 == false
bool isEqual2 = Hash.Generator.Validate(keyAndSalt.Password, keyAndSalt.Salt, "P@ssword2013");
//isEqual2 == true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment