wordpress 如何解码加密的wordpress管理员密码?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31343155/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 11:07:28  来源:igfitidea点击:

How to decode encrypted wordpress admin password?

wordpressdecode

提问by Mindus

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

我忘记了我的 WordPress 管理员密码,但我在phpMyAdmin文件中看到了它。

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.

帮我。

回答by Wojtek B.

You can't easily decryptthe password from the hash string that you see. You should rather replacethe 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/

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 phpasslibrary,
  2. use your DB interface (e.g. phpMyAdmin) to update the user_pass field with the new hash string.
  1. 使用例如http://scriptserver.mainframe8.com/wordpress_password_hasher.php(如上述链接中所述)或使用phpass库的任何其他产品,从已知密码生成新的哈希值,
  2. 使用您的数据库接口(例如 phpMyAdmin)用新的哈希字符串更新 user_pass 字段。

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

如果您在此 WordPress 安装中有更多用户,您还可以将哈希字符串从您知道密码的一个用户复制到另一个用户(管理员)。

回答by Torinouq J

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

只需使用您的 phpmyadmin 编辑 wp_user 表,然后在 Function 字段中选择 MD5,然后输入您的新密码,保存它(go 按钮)。 在此处输入图片说明

回答by Arjun Singh

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 :

md5 加密是可能的,但我仍然不知道 dycrypting,但是有很多方法可以比较这些东西,例如: 1.) 使用如下比较方法:

<?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 ?

2.) 仅适用于 wordpress 用户,如果您有权访问您的 phpmyadmin ,那么您之所以拥有 ofcos,是因为您将哈希粘贴到此处:$P$BX5675uhhghfhgfhfhfgftut/0,wordpress user_pass 不仅是 md5 格式,它还使用 utf8_mb4_cli 字符集,所以该怎么办?

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

这就是为什么如果我忘记了我使用的 wordpress 密码,我会使用另一种方法

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 )

我使用新密码安装其他 wordpress :P,然后我转到 phpmyadmin 并从数据库中复制该 hasing 并将其粘贴到我当前的 phpmyadmin 密码(我忘记了)

EASY as f...k is use this :

EASY as f...k 是使用这个:

  1. password = "ARJUNsingh@123"
  2. password_hasing = " $P$BDSdKx2nglM.5UErwjQGeVtVWvjEvD1 "
  3. Replace your $P$BX5675uhhghfhgfhfhfgftut/0 with my $P$BDSdKx2nglM.5UErwjQGeVtVWvjEvD1
  1. 密码 = "ARJUNsingh@123"
  2. password_hasing = " $P$BDSdKx2nglM.5UErwjQGeVtVWvjEvD1 "
  3. 用我的 $P$BDSdKx2nglM.5UErwjQGeVtVWvjEvD1 替换你的 $P$BX5675uhhghfhgfhfhfgftut/0

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

当我设计主题和插件时,我自己使用这种方法

WORDPRESS USE THIS

WordPress 使用这个

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

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