public void PasswordEncryptionKey_ReplicationLMHash() { byte[] sessionKey = "7dfee67fc2476e6bc1b68563e5ee7614".HexToBinary(); var pek = new ReplicationSecretDecryptor(sessionKey); byte[] blob = "fd2db3a4edba8fb08cf372b701449c1c28ddb6fcd70226fa571d490f9798f30efe6454fc".HexToBinary(); int rid = 35093; string result = pek.DecryptHash(blob, rid).ToHex(false); string expected = "727e3576618fa1754a3b108f3fa6cb6d"; Assert.AreEqual(expected, result); }
public void PasswordEncryptionKey_ReplicationNTHash() { byte[] sessionKey = "b0133bfc9ce59c805dd15d5872e247c5".HexToBinary(); var pek = new ReplicationSecretDecryptor(sessionKey); byte[] blob = "e650e0179becf540e1e6dbe37deb38b379618228d74d9ff7e08a588c2a6fbd511ad78f61".HexToBinary(); int rid = 500; string result = pek.DecryptHash(blob, rid).ToHex(true); string expected = "92937945B518814341DE3F726500D4FF"; Assert.AreEqual(expected, result); }
public void PasswordEncryptionKey_ReplicationLMHash() { byte[] sessionKey = "7dfee67fc2476e6bc1b68563e5ee7614".HexToBinary(); var pek = new ReplicationSecretDecryptor(sessionKey); byte[] blob = "fd2db3a4edba8fb08cf372b701449c1c28ddb6fcd70226fa571d490f9798f30efe6454fc".HexToBinary(); int rid = 35093; string result = pek.DecryptHash(blob, rid).ToHex(false); string expected = "727e3576618fa1754a3b108f3fa6cb6d"; Assert.AreEqual(expected, result); }
public void PasswordEncryptionKey_ReplicationNTHash() { byte[] sessionKey = "b0133bfc9ce59c805dd15d5872e247c5".HexToBinary(); var pek = new ReplicationSecretDecryptor(sessionKey); byte[] blob = "e650e0179becf540e1e6dbe37deb38b379618228d74d9ff7e08a588c2a6fbd511ad78f61".HexToBinary(); int rid = 500; string result = pek.DecryptHash(blob, rid).ToHex(true); string expected = "92937945B518814341DE3F726500D4FF"; Assert.AreEqual(expected, result); }