How do I check the moodle password from an external script

How do I check the moodle password from an external script

by Semi Makala -
Number of replies: 0

 I'm trying to check the moodle stored passwords in mdl_user table from an external script. From what I see, md5 or sha1() do not work for that purpose.  I need to be able to get the function used to compare the inputted password vs the encrypted password to make sure the password is correct. What function is used for password verification when logging in ?

Average of ratings: -