I have table in mysql which contain fields id, username, password and salt:
Example:
id : 1
username : admin
password : 11ca8949f9462890f2535c9a43ac52b8c10a9342
salt : 8d17f0de29daed0f3b4cd38f980683d01ec50729
There are no. of records like this.
My question is : How can I change the passwords of all the users in that table.
I want to create a new password for each user. Which means I need a new SHA1 hash and salt. How can I do this.
Thanks
If you have login code then you can debug it and check it how it’s working. Create appropriate script for it and update the password using following query.
Try this