summaryrefslogtreecommitdiff
path: root/_test/cases
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-01-22 21:52:30 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-01-22 22:03:54 +0100
commit3a0a2d05635920b64626448302afb12c22bb6cf6 (patch)
treea4cac5123b1a11cb94d477967ad31a53c0190791 /_test/cases
parent09c9364122228f0f5af667a94832f15dbc308c74 (diff)
downloadrpg-3a0a2d05635920b64626448302afb12c22bb6cf6.tar.gz
rpg-3a0a2d05635920b64626448302afb12c22bb6cf6.tar.bz2
refactored passowrd hashing functions to a class
this splits the long auth_cryptPassword() function into many member functions of a new class PassHash which should make it more maintainable and reusable for other projects. This also adds two new methods djangomd5 and djangosha1 as used by the popular python framework Django. Maybe the auth_cryptPassword() and auth_verifyPassword() functions should be deprecated in favor of using the class directly?
Diffstat (limited to '_test/cases')
-rw-r--r--_test/cases/inc/auth_password.test.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/_test/cases/inc/auth_password.test.php b/_test/cases/inc/auth_password.test.php
index 140c7c23e..d19b2a0e7 100644
--- a/_test/cases/inc/auth_password.test.php
+++ b/_test/cases/inc/auth_password.test.php
@@ -18,6 +18,8 @@ class auth_password_test extends UnitTestCase {
'kmd5' => 'a579299436d7969791189acadd86fcb716',
'pmd5' => '$P$abcdefgh1RC6Fd32heUzl7EYCG9uGw.',
'hmd5' => '$H$abcdefgh1ZbJodHxmeXVAhEzTG7IAp.',
+ 'djangomd5' => '$md5$abcde$d0fdddeda8cd92725d2b54148ac09158',
+ 'djangosha1' => '$sha1$abcde$c8e65a7f0acc9158843048a53dcc5a6bc4d17678',
);