ang3lx Posted February 18, 2019 Share Posted February 18, 2019 Hello What is the correct encrypt command to have an user password? I need to make a query on ps_customer table like this $mypwd = md5(_COOKIE_KEY_.$plainpwd); and SELECT * FROM ps_customer where email = AND passwd = $mypwd but password stored in mysql is different from password generated with md5 of cookiekey+plainpassword what is the right method to get the password encrypted in the right way? thanks! Link to comment Share on other sites More sharing options...
Presta Bucket Posted February 26, 2019 Share Posted February 26, 2019 Hello, If you know already the customer's email, why would you need the password as well? But as I see inside the AuthController, this is the method used to encrypt the password : md5(time()._COOKIE_KEY_); Best regards 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