Changing password hash algorithm from BCrypt to MD5 Moodle credentials are stored in a database and the passwords are hashed on different algorithms depending the PHP version that is used. Moodle uses the MD5 hashing algorithm on PHP < 5.5 and BCrypt on PHP >= 5.5. Only clear text, MD5 and SHA1 passwords are supported for Google Apps password syncing proposes. There're two files that must be edited: lib/moodlelib.php (line 4561): Before function password_compat_not_supported() { After function password_compat_not_supported() { return true; blocks/gdata/gapps.php (line 83): Before const PASSWORD_HASH_FUNCTION = ''; After const PASSWORD_HASH_FUNCTION = 'MD5'; |