diff options
author | Klap-in <klapinklapin@gmail.com> | 2013-01-26 21:03:14 +0100 |
---|---|---|
committer | Klap-in <klapinklapin@gmail.com> | 2013-01-26 21:03:14 +0100 |
commit | 3a2c510523e4ea91ab270c3075349f319e4bc95e (patch) | |
tree | 7fe2d24e5f4450cf78e9291e8a2899665274c636 /_test/tests/inc/auth_password.test.php | |
parent | 5fd9b829e7d9947de0eeead685e0a0cf707eff88 (diff) | |
parent | 1a40fc9935bd06a440a844e081e4bfce5fce2932 (diff) | |
download | rpg-3a2c510523e4ea91ab270c3075349f319e4bc95e.tar.gz rpg-3a2c510523e4ea91ab270c3075349f319e4bc95e.tar.bz2 |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to '_test/tests/inc/auth_password.test.php')
-rw-r--r-- | _test/tests/inc/auth_password.test.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/_test/tests/inc/auth_password.test.php b/_test/tests/inc/auth_password.test.php index 426353291..27e03be60 100644 --- a/_test/tests/inc/auth_password.test.php +++ b/_test/tests/inc/auth_password.test.php @@ -16,6 +16,7 @@ class auth_password_test extends PHPUnit_Framework_TestCase { 'kmd5' => 'a579299436d7969791189acadd86fcb716', 'djangomd5' => 'md5$abcde$d0fdddeda8cd92725d2b54148ac09158', 'djangosha1' => 'sha1$abcde$c8e65a7f0acc9158843048a53dcc5a6bc4d17678', + 'sha512' => '$6$abcdefgh12345678$J9.zOcgx0lotwZdcz0uulA3IVQMinZvFZVjA5vapRLVAAqtay23XD4xeeUxQ3B4JvDWYFBIxVWW1tOYlHX13k1' ); @@ -61,6 +62,11 @@ class auth_password_test extends PHPUnit_Framework_TestCase { $this->assertTrue(auth_verifyPassword('test12345','$H$9IQRaTwmfeRo7ud9Fh4E2PdI0S3r.L0')); } + function test_veryPassword_mediawiki(){ + $this->assertTrue(auth_verifyPassword('password', ':B:838c83e1:e4ab7024509eef084cdabd03d8b2972c')); + } + + /** * pmd5 checking should throw an exception when a hash with a too high * iteration count is passed |