Ejemplo n.º 1
0
        public void SHA512_hash_coverted_to_base64_still_represent_same_data()
        {
            string wordToHash = "milk";
            string milkHash   = "dYaio9oEucJhCQbpNtA2XqpgGtjN8m0wUBr6Kiej1CqwAjkStIj0CNRXvZWOuyQUDCugKc6TqXAtkZem4wwzHQ==";

            string generatedHash = SHA.CreateSHA512HashToBase64String(wordToHash, Encoding.UTF8);


            Assert.AreEqual(milkHash, generatedHash);
        }