def test_pbkdf2_static(self): expected = binascii.unhexlify( 'f6991a28c75f43751e0d75499fd7b8649f659118ddc1d61cee5883af547d15f5') # 8 iterations is WAY TOO FEW for production; this is a test raw_hash = auth._hash_pbkdf2_secret(b'p4ssw0rd', b'1234567890abcdef', 8) self.assertEqual(raw_hash, expected)
def test_pbkdf2_static(self): expected = binascii.unhexlify('f6991a28c75f43751e0d75499fd7b8649f659118ddc1d61cee5883af547d15f5') # 8 iterations is WAY TOO FEW for production; this is a test raw_hash = auth._hash_pbkdf2_secret(b'p4ssw0rd', b'1234567890abcdef', 8) self.assertEqual(raw_hash, expected)