Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to decode encrypted wordpress admin password? [closed]

Tags:

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.

like image 327
Mindus Avatar asked Jul 10 '15 14:07

Mindus


People also ask

Where is WordPress admin password stored?

The WordPress password storage for the login passwords is fairly secure. The passwords are encrypted and stored in the WordPress MySQL database. However, the password for the WordPress MySQL database itself is stored in the wp-config. php file in plain text.

Can a password be decrypted?

Encryption means the data (such as the password) can be decrypted if you have the right key. Most passwords, however, cannot be decrypted since they weren't encrypted in the first place. Instead, one might be able to recover them by running a lengthy attack.

What encryption does WordPress use for passwords?

Wordpress uses MD5 Password hashing. Creates a hash of a plain text password. Unless the global $wp_hasher is set, the default implementation uses PasswordHash, which adds salt to the password and hashes it with 8 passes of MD5. MD5 is used by default because it's supported on all platforms.


2 Answers

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).

like image 139
Wojtek B. Avatar answered Sep 20 '22 06:09

Wojtek B.


just edit wp_user table with your phpmyadmin, and choose MD5 on Function field then input your new password, save it (go button). enter image description here

like image 28
Torinouq J Avatar answered Sep 20 '22 06:09

Torinouq J