Example #1
0
 private void DealWithPassword(string pass)
 {
     Salt          = Hashing.GetRandomSalt();
     this.Password = Hashing.HashValue(pass, this.Salt);
 }
        public static bool VerifyHash(string source, string hashedValueSalt, string hashedValue)
        {
            string hashedSource = Hashing.HashValue(source, hashedValueSalt);

            return(hashedSource.Equals(hashedValue));
        }