From 04241a5ccbf839dee953d7e47c894d5c8141f7ee Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Thu, 25 Aug 2011 00:03:31 +0200 Subject: Added a fairly secure password hashing method. --- ratatoeskr/sys/models.php | 6 ++-- ratatoeskr/sys/pwhash.php | 74 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 ratatoeskr/sys/pwhash.php (limited to 'ratatoeskr') diff --git a/ratatoeskr/sys/models.php b/ratatoeskr/sys/models.php index 4448266..cd327e1 100644 --- a/ratatoeskr/sys/models.php +++ b/ratatoeskr/sys/models.php @@ -48,9 +48,9 @@ class User /* * Variables: Public class properties * - * $username - The username - * $pwhash - SHA1-Hash of the password - * $mail - E-Mail-address + * $username - The username. + * $pwhash - of the password. + * $mail - E-Mail-address. * $fullname - The full name of the user. * $language - Users language */ diff --git a/ratatoeskr/sys/pwhash.php b/ratatoeskr/sys/pwhash.php new file mode 100644 index 0000000..69ec837 --- /dev/null +++ b/ratatoeskr/sys/pwhash.php @@ -0,0 +1,74 @@ + -- cgit v1.2.3-70-g09d2