Moodle 2.5 new Password hash

Re: Moodle 2.5 new Password hash

by Sameer Sharma -
Number of replies: 1

Hi Guillermo Madero,

I want to store encrypted password of moodle directly by adding row to the database. Please help me how can i encrypt the password for moodle 2.5

In reply to Sameer Sharma

Re: Moodle 2.5 new Password hash

by Xbalanqué Velázquez -

Hi Sameer, i generate the password directly in the database with the follow PHP code:

$password_hashed = password_hash('password_to_encrypt', PASSWORD_DEFAULT);


For more information, review the PHP function 'password_hash', and Moodle use 'blowfish' encryption.


smile