summaryrefslogtreecommitdiff
path: root/inc/load.php
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 /inc/load.php
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 'inc/load.php')
-rw-r--r--inc/load.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/load.php b/inc/load.php
index 478ee7c76..ef6f7f31c 100644
--- a/inc/load.php
+++ b/inc/load.php
@@ -75,6 +75,7 @@ function load_autoload($name){
'Doku_Parser_Mode' => DOKU_INC.'inc/parser/parser.php',
'SafeFN' => DOKU_INC.'inc/SafeFN.class.php',
'Sitemapper' => DOKU_INC.'inc/Sitemapper.php',
+ 'PassHash' => DOKU_INC.'inc/PassHash.class.php',
'DokuWiki_Action_Plugin' => DOKU_PLUGIN.'action.php',
'DokuWiki_Admin_Plugin' => DOKU_PLUGIN.'admin.php',