如何将md5字​​符串转换为普通文本? [英] How to convert md5 string to normal text?

查看:146
本文介绍了如何将md5字​​符串转换为普通文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经以MD5格式将用户密码保存在数据库中,现在我想以纯文本格式向用户发送密码,有什么办法可以将MD5字符串转换为纯文本?

I have saved user passwords in MD5 form in my database, now I want to send password to users in plaintext, is there any way I can convert an MD5 string to plaintext?

推荐答案

Md5是哈希处理算法. 无法从哈希结果中检索原始输入.

Md5 is a hashing algorithm. There is no way to retrieve the original input from the hashed result.

如果要添加忘记密码?" 功能,可以向用户发送一封电子邮件,其中包含临时链接以创建新密码.

If you want to add a "forgotten password?" feature, you could send your user an email with a temporary link to create a new password.

注意:以纯文本格式发送密码是

Note: Sending passwords in plain text is a BAD idea :)

这篇关于如何将md5字​​符串转换为普通文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆