如何在mysql语法中解密MD5函数 [英] how to decrypt MD5 function in mysql syntax

查看:1180
本文介绍了如何在mysql语法中解密MD5函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用MD5功能加密密码..

i used MD5 function to encrypt password ..

展开 | 选择 | Wrap | 行号

推荐答案

MD5是一种散列算法不是加密的。请阅读此处了解如何使用散列算法并更喜欢SHA2 https://www.owasp .org / index.php / Hashing_Java
MD5 is a hashing algorithm not an encryption one. Read here for how to use hashing algorithms and prefer SHA2 https://www.owasp.org/index.php/Hashing_Java


但是如何解密sha加密

我们建议我使用sha1但是如何在计划中反转它用于登录以比较该加密密码的文本。
but how to decrypt sha encryption
as us suggest i use sha1 but how to reverse it in plan text for login to compare that encrypted password.


您不会。哈希算法是不可逆的。

你永远不需要解密密码。

当用户登录时再次计算哈希值并将哈希值与哈希值进行比较数据库。无需从哈希中获取密码。
You don''t. Hashing algorithms are not reversible.
You never need to decrypt passwords.
When a user logs in just calculate the hash again and compare the hash with what''s on the database. No need to get the password from the hash.


这篇关于如何在mysql语法中解密MD5函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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