wordpress 如何解密wordpress生成的密码
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12457301/
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
How to decrypt the password generated by wordpress
提问by Ramaraju.d
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.
我正在使用 wordpress 网站。我只想知道,如何从加密密码(存储在 wordpress 数据库中)中获取纯文本。我用$wp_hasher->CheckPassword($plain_password, $password_hashed)
来检查密码是否正确。但这次我想知道如何获得纯文本。
回答by Justin
This is one of the proposed solutions found in the articleJacob mentioned, and it worked great as a manual way to change the password without having to use the email reset.
这是Jacob 提到的文章中提出的解决方案之一,它作为一种手动更改密码的方式非常有效,而无需使用电子邮件重置。
- In the DB table
wp_users
, add a key, like abc123to theuser_activation
column. - Visit yoursite.com/wp-login.php?action=rp&key=abc123&login=yourusername
- You will be prompted to enter a new password.
- 在 DB 表中
wp_users
,向 列添加一个键,例如abc123user_activation
。 - 访问 yoursite.com/wp-login.php?action=rp&key= abc123&login= yourusername
- 系统将提示您输入新密码。
回答by Jacob Tomlinson
You will not be able to retrieve a plain text password from wordpress.
您将无法从 wordpress 中检索纯文本密码。
Wordpress use a 1 way encryption to store the passwords using a variation of md5. There is no way to reverse this.
Wordpress 使用一种单向加密来使用 md5 的变体来存储密码。没有办法扭转这一点。
See this article for more info http://wordpress.org/support/topic/how-is-the-user-password-encrypted-wp_hash_password
有关更多信息,请参阅本文http://wordpress.org/support/topic/how-is-the-user-password-encrypted-wp_hash_password