summaryrefslogtreecommitdiff
path: root/_test/cases
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-01-15 12:24:14 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-01-15 12:24:14 +0100
commitf91977c212fd1c1645f521f6190e1ec32259f7a2 (patch)
treefc4bee4e4a7518cf1356de449b8d423b13a2b19f /_test/cases
parentef7df687e4ebf910c7eb86b5a8b2a47b9d121917 (diff)
downloadrpg-f91977c212fd1c1645f521f6190e1ec32259f7a2.tar.gz
rpg-f91977c212fd1c1645f521f6190e1ec32259f7a2.tar.bz2
Added support for Wordpress' password hashing FS#2134
Diffstat (limited to '_test/cases')
-rw-r--r--_test/cases/inc/auth_password.test.php7
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 :