Password generator

Password generator

by paddy mayer -
Number of replies: 2

Hey Guys,

I develop  an VB.Application, which can be used by students. My plan is that someone how register in my app gets automaticly an Moodle Account on my server. The problem is, that I get wrong MD5 passwords. 


For instance:

The password is: Testtest1!

In MD5 it is: 3A253EC561547ACA7E3CADF1E271736C

in mdl_user it is: $2y$10$FADV15Fg.sVq8puNaRzTPeZsD3jK7oMM1jucvSXOLk5pXQHOcHcPG

There is no mainsalt in my config.php

Can anybody help me to get a vaild md5 password which I can write into the mdl_user?

Ah: and sorry for my bad english, I am still learning smile



Average of ratings: -
In reply to paddy mayer

Re: Password generator

by Darko Miletić -

As of Moodle 2.5 md5 is no longer used for password hashes. Checkout the source code to see new bcrypt based hashing implementation.

Average of ratings: Useful (1)
In reply to paddy mayer

Re: Password generator

by David Mudrák -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

To make it even cleaner, instead of injecting records into mdl_user table yourself, you may better want to use the web services and call the core_user_create_users function from your app.