How to decode encrypted wordpress admin password?

How to decode encrypted wordpress admin password?

You cant 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.

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

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

How to decode encrypted wordpress admin password?

MD5 encrypting is possible, but decrypting is still unknown (to me). However, there are many ways to compare these things.

  1. Using compare methods like so:

    <?php
      $db_pass = $P$BX5675uhhghfhgfhfhfgftut/0;
      $my_pass = mypass;
      if ($db_pass === md5($my_pass)) {
        // password is matched
      } else {
        // password didnt match
      }
    
  2. Only for WordPress users.
    If you have access to your PHPMyAdmin, focus 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 so what to do?

    Thats why I use 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 hashing from the database and paste that hashing to my current PHPMyAdmin password ( which I forget )

    EASY is use this :

    1. password = [email protected]
    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/

Leave a Reply

Your email address will not be published.