Feature #12863 ยป auth.patch
| src/etc/inc/auth.inc | ||
|---|---|---|
|
switch ($hashalgo) {
|
||
|
case 'sha512':
|
||
|
$salt = substr(bin2hex(random_bytes(16)),0,16);
|
||
|
$user['sha512-hash'] = crypt($password, '$6$'. $salt . '$');
|
||
|
$user['sha512-hash'] = crypt($password, '$6$rounds=800000$'. $salt . '$');
|
||
|
break;
|
||
|
case 'bcrypt':
|
||
|
default:
|
||