Page 1 sur 1

password encryption

Publié : 18 juin 2025, 18:49
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

Re: password encryption

Publié : 19 juin 2025, 08:42
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