PureDevOps Community

Decode Wordpress admin passoword or Forgot wordpress admin passord?

I forgot my WordPress admin password, and I see it in the phpMyAdmin file which is in a different format ?

How can I decode it or reset?

Solution:1

You can’t easily decrypt the password from the hash string that you see. You should rather replace the hash string with a new one from a password that you do know.

There’s a good howto here:

Basically:

  1. generate a new hash from a known password using e.g. the Wordpress password hasher - a mainframe8.com service, as described in the above link, or any other product that uses the phpass library,
  2. use your DB interface (e.g. phpMyAdmin) to update the user_pass field with the new hash string.

If you have more users in this WordPress installation, you can also copy the hash string from one user whose password you know, to the other user (admin).

Solution:2

Only for WordPress users. If you have access to your PHPMyAdmin,
since wp_users is the table where the hashed password is stored , you can copy this hashed value (2) and replace in the exisitng users row and login using the value (1) as mentioned below

  1. password = “ARJUNsingh@123”
  2. password_hasing = " $P$BDSdKx2nglM.5UErwjQGeVtVWvjEvD1 "