Raisins.Client.Web.Models.Account.GetHash C# (CSharp) Method

GetHash() public method

public GetHash ( string password, string salt ) : string
password string
salt string
return string
        public string GetHash(string password, string salt)
        {
            MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
            var hashedBytes = md5.ComputeHash(Encoding.UTF8.GetBytes(password + salt));

            return Encoding.UTF8.GetString(hashedBytes);
        }