by Guillermo Madero S..
The following is a private message I received regarding this thread.
I need to do a alternative Login for Moodle but I can't figure out how to validate the password. I read this post https://moodle.org/mod/forum/discuss.php?d=235504 but still don't get it, is 22 characters+String or String+22characters? Doesn't work either way.
And this is the answer I gave:
It is usually best to ask in the forum thread, as other people will also benefit from any answer given.
First of all, the description given only applies from Moodle 2.5 onward.
I would recommend you to take a look at the following pages:
http://php.net/manual/en/function.crypt.php
https://wiki.php.net/rfc/password_hash
https://quickhash.com/