security - How to get real password (before encrypt) when register a user?

I just need to get real password (before encrypt) when user is registering. I need to save that password in another tabl

I just need to get real password (before encrypt) when user is registering. I need to save that password in another table. How I access the real password before encrypt?

The reason for it is, I am doing a research about passwords.

I just need to get real password (before encrypt) when user is registering. I need to save that password in another table. How I access the real password before encrypt?

The reason for it is, I am doing a research about passwords.

Share Improve this question asked Feb 21, 2017 at 2:54 NimalakaNimalaka 111 bronze badge 2
  • 2 This kind of research is usually done with password lists from known site breaks. Their size guarantees at least some statistical value. What you are trying is not research. Besides that, passwords are not encrypted in WordPress, they are hashed. Encryption is reversible, hashing is not. – fuxia Commented Feb 21, 2017 at 8:41
  • grrr, you could have just written "i want to collect emails and passwords" :( It is bad enough that you can get such lists, don't see any reason for us to encourage such a reckless behaviour – Mark Kaplun Commented Feb 21, 2017 at 8:44
Add a comment  | 

2 Answers 2

Reset to default 0

Not sure what research you are doing, but you can hook into user_register and get submitted password using $_POST variable.

You can hook into user_register to get the submitted password from the $_POST request:

add_action( 'user_register', 'myplugin_registration_save', 10, 1 );
function myplugin_registration_save( $user_id ) {

    if ( isset( $_POST['password'] ) ) {
       /* do something with $_POST['password'] */
    }

}

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745662393a4638916.html

相关推荐

  • security - How to get real password (before encrypt) when register a user?

    I just need to get real password (before encrypt) when user is registering. I need to save that password in another tabl

    5小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信