Example #1
0
        private void RunSHA2Algorithm512()
        {
            Console.WriteLine("SHA2 (512) Hash Algorithm started");

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

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

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

            Console.WriteLine("SHA2 (512) Hash Algorithm ended");
        }