示例#1
0
        public void CryptoHashSHA512ArrayTest()
        {
            var actual = CryptoHash.SHA512(Encoding.ASCII.GetBytes("Adam Caudill"));

            CollectionAssert.AreEqual(Utilities.HexToBinary(SHA512_HASH), actual);
        }
示例#2
0
        public void CryptoHashSHA512StringTest()
        {
            var actual = CryptoHash.SHA512("Adam Caudill");

            CollectionAssert.AreEqual(Utilities.HexToBinary(SHA512_HASH), actual);
        }