Skip to content

Instantly share code, notes, and snippets.

@hagbarddenstore
Last active December 20, 2015 20:59
Show Gist options
  • Save hagbarddenstore/6194518 to your computer and use it in GitHub Desktop.
Save hagbarddenstore/6194518 to your computer and use it in GitHub Desktop.
public static byte[] AccountAddSaltToHashedPassword(string passwordHash, byte[] salt)
{
var hash = cryptCalculateSHAHash(string.Format("{0}{1}", passwordHash, System.Text.Encoding.ASCII.GetString(salt)));
return hash;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment