Project

General

Profile

Feature #12863 ยป auth.patch

sha512 use 800k rounds - Phil Wardt, 03/19/2022 12:52 PM

View differences:

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:
    (1-1/1)