def test_6(self): self.assertEqual( hexenc(pbkdf2( b"pass\x00word", b"sa\x00lt", 4096, 20, )), "43e06c5590b08c0225242373127edf9c8e9c3291", )
def test_5(self): self.assertSequenceEqual( hexenc(pbkdf2( b"passwordPASSWORDpassword", b"saltSALTsaltSALTsaltSALTsaltSALTsalt", 4096, 40, )), "788358c69cb2dbe251a7bb17d5f4241f265a792a35becde8d56f326b49c85047b7638acb4764b1fd", )
def test_4(self): self.assertEqual( hexenc(pbkdf2(b"password", b"salt", 16777216, 32)), "a57ae5a6088396d120850c5c09de0a525100938a59b1b5c3f7810910d05fcd97", )
def test_3(self): self.assertEqual( hexenc(pbkdf2(b"password", b"salt", 4096, 32)), "1f1829a94bdff5be10d0aeb36af498e7a97467f3b31116a5a7c1afff9deadafe", )
def test_2(self): self.assertEqual( hexenc(pbkdf2(b"password", b"salt", 2, 32)), "990dfa2bd965639ba48b07b792775df79f2db34fef25f274378872fed7ed1bb3", )
def test_1(self): self.assertEqual( hexenc(pbkdf2(b"password", b"salt", 1, 32)), "7314e7c04fb2e662c543674253f68bd0b73445d07f241bed872882da21662d58", )