cybermad Posted May 6, 2015 Share Posted May 6, 2015 Bonjour à tous, J'ai un prestashop 1.6, et pour un besoin particulier, j'ai un système à part qui utilise le système de membre des tables prestashop. la table _customer le champs "passwd" contient le mot de passe chiffré. J'ai lu et vu à plusieurs reprise qu'il s'agissait d'un chiffrement MD5. Or en SQL quand je fais: SELECT * FROM `..._employee` WHERE `email` = 'monemail' and `passwd` = MD5('password') ça ne me retourne aucun élément... de plus si je chiffre un mot de passe via le MD5 de phpmyadmin, je n'ai pas la même chaîne que lorsque je change mon mot de passe via l'admin prestashop. Donc ce n'est pas MD5 ou alors il y a du sel... Une personne pourrait-elle m'aider svp ? Link to comment Share on other sites More sharing options...
2FR3 Posted May 6, 2015 Share Posted May 6, 2015 Bonjour, Il y a un rapport avec une des clefs du fichier config.php. Voila un vieu sujet qui vous donnera la marche a suivre https://www.prestashop.com/forums/topic/17550-resolu-mot-de-passe-dans-panneau-dadmin-presta-en-local/ Link to comment Share on other sites More sharing options...
tuk66 Posted May 6, 2015 Share Posted May 6, 2015 De Tools.php /** * Encrypt password * * @param string $passwd String to encrypt */ public static function encrypt($passwd) { return md5(_COOKIE_KEY_.$passwd); } 1 Link to comment Share on other sites More sharing options...
cybermad Posted May 6, 2015 Author Share Posted May 6, 2015 Aaaahhhh.... Merci à tous. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now