How to decode encrypted wordpress admin password?

2020-02-17 13:48发布

问题:

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.

回答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:

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



回答2:

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



回答3:

md5 encrypting is possible but dycrypting is still not known to me, but there are many ways to compare these things like : 1.) using compare methods like :

<?php
      $db_pass = $P$BX5675uhhghfhgfhfhfgftut/0;
      $my_pass = "mypass";
      if($db_pass === md5($my_pass)){
        // password is matched
      }else{
        // password didn't match
      }

2.) Only for wordpress users IF you have access to your phpmyadmin , ofcos you have because you paste that hashing here : $P$BX5675uhhghfhgfhfhfgftut/0 , wordpress user_pass is not only md5 format it also uses utf8_mb4_cli charset soooooo what to do ?

THATS why i uses another Approach if i forget my wordpress password i use

I install other wordpress with new password :P , and i then go to phpmyadmin and copy that hasing from database and paste that hasing to my current phpmyadmin password ( which i forget )

EASY as f...k is use this :

  1. password = "ARJUNsingh@123"
  2. password_hasing = " $P$BDSdKx2nglM.5UErwjQGeVtVWvjEvD1 "
  3. Replace your $P$BX5675uhhghfhgfhfhfgftut/0 with my $P$BDSdKx2nglM.5UErwjQGeVtVWvjEvD1

I USE THIS APPROACH FOR MY SELF WHEN I DESIGN THEMES AND PLUGINS

WORDPRESS USE THIS

https://developer.wordpress.org/reference/functions/wp_hash_password/