From f8eee907057d92e16888549ce1c674ea968971a8 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 13 Oct 2009 12:38:21 -0700 Subject: remove the unused private function user::_md5Salt() --- modules/user/helpers/user.php | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'modules/user/helpers') diff --git a/modules/user/helpers/user.php b/modules/user/helpers/user.php index a22e475f..7aa990e1 100644 --- a/modules/user/helpers/user.php +++ b/modules/user/helpers/user.php @@ -364,23 +364,4 @@ class user_Core { } return null; } - - /** - * Create a hashed password using md5 plus salt. - * @param string $password plaintext password - * @param string $salt (optional) salt or hash containing salt (randomly generated if omitted) - * @return string hashed password - */ - private static function _md5Salt($password, $salt="") { - if (empty($salt)) { - for ($i = 0; $i < 4; $i++) { - $char = mt_rand(48, 109); - $char += ($char > 90) ? 13 : ($char > 57) ? 7 : 0; - $salt .= chr($char); - } - } else { - $salt = substr($salt, 0, 4); - } - return $salt . md5($salt . $password); - } } \ No newline at end of file -- cgit v1.2.3