Hashing Technique in ASP.Net


public string HashingSHA1(string test)
        {
            /*================================================================
                      Hashing Technique with SALT.
            ================================================================ */

            string HashedString = null;
            byte[] salt = new byte[8];
            string intermediate = null;
            try
            {
                SHA1 sha = new SHA1CryptoServiceProvider();
                salt = Encoding.UTF8.GetBytes("Authenticate");//add your own salt here
                intermediate = Convert.ToBase64String(salt) + test;
                byte[] result = new byte[intermediate.Length];
                result = sha.ComputeHash(System.Text.Encoding.UTF8.GetBytes(intermediate));
                HashedString = Convert.ToBase64String(result);
            }
            catch (CryptographicException ce)
            {
                //ce.Message;
            }

            return HashedString;
        }

You Can Download the Working Code From here.