Exemple #1
0
        public static bool NTv2HashTest()
        {
            byte[] hash     = NTAuthentication.NTOWFv2("Password", "User", "Domain");
            byte[] expected = new byte[] { 0x0c, 0x86, 0x8a, 0x40, 0x3b, 0xfd, 0x7a, 0x93, 0xa3, 0x00, 0x1e, 0xf2, 0x2e, 0xf0, 0x2e, 0x3f };
            bool   success  = ByteUtils.AreByteArraysEqual(hash, expected);

            return(success);
        }