示例#1
0
        public string GenerateHash(string salt, string input)
        {
            string inputString = string.Format("{0}{1}", input, salt);

            byte[]        bytes  = System.Text.Encoding.ASCII.GetBytes(inputString);
            SHA256Managed hasher = new SHA256Managed();

            return(hasher.GenerateHash(bytes));
        }