Example #1
0
 public static string GetHashedPass(string name, string pass, int salt)
 {
     return(CryptoHelper.HashSHA1(name + pass + salt));
 }
Example #2
0
        public static string GetHashedAccessKey(string key)
        {
            var salt = ConfigurationManager.AppSettings["AccessKeySalt"] ?? string.Empty;

            return(CryptoHelper.HashSHA1(key + salt));
        }
 public string HashPassword(string password, string salt, string username)
 {
     return(CryptoHelper.HashSHA1(username + password + salt));
 }