MDL-67390 Authentication: Update password hashing to SHA-512

Replace the bcrypt password hashing algorithm with SHA-512.
Existing bcrypt hashes will be updated to SHA-512 when a user
logs in next. Support for old md5 hashes has been removed.
Any reamining md5 hashes are replaced with SHA-512 hashes
from strong random passwords.
This commit is contained in:
Matt Porritt 2023-06-25 17:59:59 +10:00
parent cccc00954d
commit 07af783b9a
4 changed files with 115 additions and 76 deletions

View file

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2023082200.00; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2023082200.01; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
$release = '4.3dev+ (Build: 20230822)'; // Human-friendly version name