Esempio n. 1
0
        public void CanCreateSha256Hash()
        {
            const string hello = "Hello World";
            var          hash  = AuthenticationHelpers.Sha256Hash(hello);

            Assert.That(hash, Is.Not.Null);
            Assert.That(hash, Is.Not.Empty);
            Assert.That(hash, Is.Not.EqualTo(hello));
            Assert.That(hash, Is.EqualTo("a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e"));
        }