diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-01-15 12:24:14 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-01-15 12:24:14 +0100 |
commit | f91977c212fd1c1645f521f6190e1ec32259f7a2 (patch) | |
tree | fc4bee4e4a7518cf1356de449b8d423b13a2b19f /_test | |
parent | ef7df687e4ebf910c7eb86b5a8b2a47b9d121917 (diff) | |
download | rpg-f91977c212fd1c1645f521f6190e1ec32259f7a2.tar.gz rpg-f91977c212fd1c1645f521f6190e1ec32259f7a2.tar.bz2 |
Added support for Wordpress' password hashing FS#2134
Diffstat (limited to '_test')
-rw-r--r-- | _test/cases/inc/auth_password.test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/_test/cases/inc/auth_password.test.php b/_test/cases/inc/auth_password.test.php index 77ee9eed3..140c7c23e 100644 --- a/_test/cases/inc/auth_password.test.php +++ b/_test/cases/inc/auth_password.test.php @@ -16,6 +16,8 @@ class auth_password_test extends UnitTestCase { 'mysql' => '4a1fa3780bd6fd55', 'my411' => '*e5929347e25f82e19e4ebe92f1dc6b6e7c2dbd29', 'kmd5' => 'a579299436d7969791189acadd86fcb716', + 'pmd5' => '$P$abcdefgh1RC6Fd32heUzl7EYCG9uGw.', + 'hmd5' => '$H$abcdefgh1ZbJodHxmeXVAhEzTG7IAp.', ); @@ -39,6 +41,11 @@ class auth_password_test extends UnitTestCase { $this->assertTrue(auth_verifyPassword('foo','$1$$n1rTiFE0nRifwV/43bVon/')); } + function test_verifyPassword_fixedpmd5(){ + $this->assertTrue(auth_verifyPassword('test12345','$P$9IQRaTwmfeRo7ud9Fh4E2PdI0S3r.L0')); + $this->assertTrue(auth_verifyPassword('test12345','$H$9IQRaTwmfeRo7ud9Fh4E2PdI0S3r.L0')); + } + } //Setup VIM: ex: et ts=4 : |