It currently Moodle is using MD5 for password hashing. Is there a way to change it to SHA512?
Thank You
Moodle does NOT use MD5 for password hashing.
Moodle uses the standard password_hash function (https://www.php.net/manual/en/function.password-hash.php) which, at the time of writing, uses the bcrypt algorithm. This is more secure than both MD5 and SHA512 and should not be changed unless you have a really good reason to do so.