How to decode encrypted wordpress admin password?

Mindus picture Mindus · Jul 10, 2015 · Viewed 170.1k times · Source

I forgot my WordPress admin password, and I see it in the phpMyAdmin file.

But it is in a different form.

How I can decode it to know what my password is?

Is there any tool for decoding passwords?

$P$BX5675uhhghfhgfhfhfgftut/0

Help me.

Answer

Wojtek B. picture Wojtek B. · Jul 10, 2015

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:

https://jakebillo.com/wordpress-phpass-generator-resetting-or-creating-a-new-admin-user/

Basically:

  1. generate a new hash from a known password using e.g. http://scriptserver.mainframe8.com/wordpress_password_hasher.php, 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).