A cryptographic hash provider based on the SHA256Managed algorithm.
Наследование: HashProvider
Пример #1
0
        public void GetSaltLength32()
        {
            var salt = new SHA2HashProvider("x").GetSalt(32);

            Assert.AreEqual(32, salt.Length);
        }
Пример #2
0
        public void GetSaltLength16()
        {
            var salt = new SHA2HashProvider("x").GetSalt(16);

            Assert.AreEqual(16, salt.Length);
        }
Пример #3
0
        public void GetSaltLength16()
        {
            var salt = new SHA2HashProvider("x").GetSalt(16);

            Assert.AreEqual(16, salt.Length);
        }
Пример #4
0
        public void GetSaltLength32()
        {
            var salt = new SHA2HashProvider("x").GetSalt(32);

            Assert.AreEqual(32, salt.Length);
        }