From 639715cee0744fd1b5f5ded28b1b60c969702026 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 21 Nov 2013 17:02:04 +0100 Subject: Make default boot entry selectable (also fix menu timeout) --- inc/crypto.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/crypto.inc.php') diff --git a/inc/crypto.inc.php b/inc/crypto.inc.php index 54cdef8a..56f5073c 100644 --- a/inc/crypto.inc.php +++ b/inc/crypto.inc.php @@ -10,7 +10,7 @@ class Crypto */ public static function hash6($password) { - $salt = substr(str_replace('+', '.', base64_encode(pack('N4', mt_rand(), mt_rand(), mt_rand(), mt_rand()))), 0, 22); + $salt = substr(str_replace('+', '.', base64_encode(pack('N4', mt_rand(), mt_rand(), mt_rand(), mt_rand()))), 0, 16); $hash = crypt($password, '$6$' . $salt); if (strlen($hash) < 60) Util::traceError('Error hashing password using SHA-512'); return $hash; -- cgit v1.2.3-55-g7522