summaryrefslogtreecommitdiffstats
path: root/inc/crypto.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2013-11-21 17:02:04 +0100
committerSimon Rettberg2013-11-21 17:02:04 +0100
commit639715cee0744fd1b5f5ded28b1b60c969702026 (patch)
tree6680655fc15c354ed34dcbe09bc179969644d3f2 /inc/crypto.inc.php
parentNotify about missing options/files/actions on dashboard (diff)
downloadslx-admin-639715cee0744fd1b5f5ded28b1b60c969702026.tar.gz
slx-admin-639715cee0744fd1b5f5ded28b1b60c969702026.tar.xz
slx-admin-639715cee0744fd1b5f5ded28b1b60c969702026.zip
Make default boot entry selectable (also fix menu timeout)
Diffstat (limited to 'inc/crypto.inc.php')
-rw-r--r--inc/crypto.inc.php2
1 files changed, 1 insertions, 1 deletions
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;