diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-01-15 11:28:59 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-01-15 11:28:59 +0100 |
commit | ef7df687e4ebf910c7eb86b5a8b2a47b9d121917 (patch) | |
tree | e0efc2fd72286e006ca8aea4bbf801cdc2fb8a97 /_test | |
parent | 99f04cb741f14f2ccea37163786f1ea4824c2eb0 (diff) | |
download | rpg-ef7df687e4ebf910c7eb86b5a8b2a47b9d121917.tar.gz rpg-ef7df687e4ebf910c7eb86b5a8b2a47b9d121917.tar.bz2 |
added unit test for kmd5 password hashing
Diffstat (limited to '_test')
-rw-r--r-- | _test/cases/inc/auth_password.test.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/_test/cases/inc/auth_password.test.php b/_test/cases/inc/auth_password.test.php index cb1cd5593..77ee9eed3 100644 --- a/_test/cases/inc/auth_password.test.php +++ b/_test/cases/inc/auth_password.test.php @@ -15,6 +15,7 @@ class auth_password_test extends UnitTestCase { 'crypt' => 'ablvoGr1hvZ5k', 'mysql' => '4a1fa3780bd6fd55', 'my411' => '*e5929347e25f82e19e4ebe92f1dc6b6e7c2dbd29', + 'kmd5' => 'a579299436d7969791189acadd86fcb716', ); @@ -22,7 +23,7 @@ class auth_password_test extends UnitTestCase { foreach($this->passes as $method => $hash){ $info = "testing method $method"; $this->signal('failinfo',$info); - $this->assertEqual(auth_cryptPassword('foo'.$method,$method,'abcdefgh'),$hash); + $this->assertEqual(auth_cryptPassword('foo'.$method,$method,'abcdefgh12345678912345678912345678'),$hash); } } |