Example #1
0
        private void RunSHA1Algorithm()
        {
            Console.WriteLine("SHA1 Hash Algorithm started");

            Console.WriteLine(String.Format("Message before Hash: {0}", _originalMessage));

            byte[] hashedMessage = CryptographyExample.ComputeSha1Hash(Encoding.UTF8.GetBytes(_originalMessage));

            Console.WriteLine(String.Format("Message after Hash: {0}", Convert.ToBase64String(hashedMessage)));

            Console.WriteLine("SHA1 Hash Algorithm ended");
        }