password encryption

Pour ceux qui souhaitent aller plus loin dans le paramétrage de leur espace.
andreajowett38
Messages : 1
Inscription : 17 juin 2025, 17:49

password encryption

Message par andreajowett38 »

Hello,

I would like to install another site in connection with my agora. Since the connection to my site is reserved for the sole user of my agora, I would like users to log in with the same username and password. Since I use the gt_user table to check the validity of the connection, I must encode with the same encryption method. I tried with sha1 and md5 but I cannot find the password for my gt_user table. Could you tell me the method to use?

Thank you for your help
xech
Administrateur du site
Messages : 1419
Inscription : 17 janv. 2008, 20:58

Re: password encryption

Message par xech »

Bonjour,
Les passwords sont enregistrés en BDD via SHA1 avec un SALT : et ce dernier dépend de chaque espace (il est enregistré dans le fichier "config.inc.php"). Pour voir comment cela fonctionne exactement, vous pouvez consulter la methode MdlUser::passwordSha1().
Cordialement
Xech

----

Hello,
Passwords are stored in the database via SHA1 with a SALT, and it depends on each space (it is stored in the "config.inc.php" file). To see how this works, you can consult the MdlUser::passwordSha1() method.

Sincerely,
Xech
Répondre