Remote authentication

Remote authentication

by Denis Akopyan -
Number of replies: 0

Hello!

I'm currently developing a desktop application which requires a connection to a Moodle database for user authentication.

Connecting and retrieving user data is a piece of cake. But I'm completely lost about the password encryption for the checksum!

I encrypt the login password to MD5, but it is way off compared to the one stored in the Moodle database. How do I encrypt my password in the same manner to perform a checksum? 

My config.php has no salt, so I guess salting is either off or hidden somewhere else.

FYI The application is Electron based - a javascript solution is required. 

I was able to find a solution which generates an MD5 using a salt, just like PHP's crypt(pass, salt)

Thank you!


Moodle 2.8

Average of ratings: -