Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to decrypt the password generated by wordpress

I am using a wordpress site. I just want to know , How to get a plain text from encrypted password(stored in wordpress database). I used the $wp_hasher->CheckPassword($plain_password, $password_hashed) to check the password is correct or not. But this time i would like to know how to get plain text.

like image 532
Ramaraju.d Avatar asked Sep 17 '12 10:09

Ramaraju.d


2 Answers

This is one of the proposed solutions found in the article Jacob mentioned, and it worked great as a manual way to change the password without having to use the email reset.

  1. In the DB table wp_users, add a key, like abc123 to the user_activation column.
  2. Visit yoursite.com/wp-login.php?action=rp&key=abc123&login=yourusername
  3. You will be prompted to enter a new password.
like image 69
Justin Avatar answered Oct 19 '22 01:10

Justin


You will not be able to retrieve a plain text password from wordpress.

Wordpress use a 1 way encryption to store the passwords using a variation of md5. There is no way to reverse this.

See this article for more info http://wordpress.org/support/topic/how-is-the-user-password-encrypted-wp_hash_password

like image 26
Jacob Tomlinson Avatar answered Oct 19 '22 01:10

Jacob Tomlinson