diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-01-23 11:15:33 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-01-23 11:15:33 +0100 |
commit | 62bbd5ef5f25e1d89d67a00cc3b51a954013d7cb (patch) | |
tree | eb9070ea8cd4afc88dbf53fcf009f14ad9fe18c3 /_test | |
parent | 52c9860c6e3a36b884ca186f1c9ea3d7acdf2b13 (diff) | |
download | rpg-62bbd5ef5f25e1d89d67a00cc3b51a954013d7cb.tar.gz rpg-62bbd5ef5f25e1d89d67a00cc3b51a954013d7cb.tar.bz2 |
use a bigger range of characters for password salts
Diffstat (limited to '_test')
-rw-r--r-- | _test/cases/inc/auth_password.test.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/_test/cases/inc/auth_password.test.php b/_test/cases/inc/auth_password.test.php index 1c0942239..8646e3226 100644 --- a/_test/cases/inc/auth_password.test.php +++ b/_test/cases/inc/auth_password.test.php @@ -39,6 +39,16 @@ class auth_password_test extends UnitTestCase { } } + function test_verifySelf(){ + foreach($this->passes as $method => $hash){ + $info = "testing method $method"; + $this->signal('failinfo',$info); + + $hash = auth_cryptPassword('foo'.$method); + $this->assertTrue(auth_verifyPassword('foo'.$method,$hash)); + } + } + function test_verifyPassword_nohash(){ $this->assertTrue(auth_verifyPassword('foo','$1$$n1rTiFE0nRifwV/43bVon/')); } |