MD5安全性好吗? [英] MD5 security is fine?

查看:20
本文介绍了MD5安全性好吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是编码新手,所以也许我错过了 md5 的重点.但是从我所经历的 MD5 加密来看,每个单词都是静态的".静态我的意思是你总是会找到相同的结果,例如 md5("hello").这让我认为使用库是高度可逆的.

Im new at coding so Maybe I've missed the point of what md5 is about. But from what' i've experienced MD5 encryption is "static" for each word. By static i mean you will always find the same result for example md5("hello"). And this makes me think that is is highly reversible using a library.

如果 md5("hello") 被分配了一个数字(例 5),例如字符串会怎样

What if md5("hello") was assigned a number (example 5), and the string for example

xbuIdSjsdsjsd44s64sd 是它的加密.并且等于 5但是如果sfoiefef465f4ze4f6fe 也是它的加密.并且也等于 5

xbuIdSjsdsjsd44s64sd was its encryption. and was equal to 5 but what if sfoiefef465f4ze4f6fe was also its encryption. and was also equal to 5

因为两者的数学计算结果相同.那会是动态加密吗?

Because both for a mathematical calculation ends to the same result. That would be dynamic encryption?

我想,但我告诉你我是个新手,所以这些只是困扰我的问题,我认为可以访问数据库md5密码的人可以通过测试单词并将它们作为库存放来轻松逆转它们.

I think, but I tell you I'm a newb at all this, so those are just questions that bother me, I think that people who have access to the database md5's password, can reverse them easily by testing words and stocking them as a library.

你们觉得怎么样?还有 md5 的替代品吗?

what do you think guys? and is there an alternative to md5?

感谢您的帮助或启发

推荐答案

这些确实是合理的问题.您可能会发现以下文章很有趣:

These are indeed legitimate concerns. You might find the following articles interesting:

但安全专家认为 MD5 已损坏".这取决于确切地您的要求是什么:MD5 可能是合适的,但更安全的散列,例如 SHA-2 系列 可能是更明智的选择,甚至是诸如 PBKDF2(如CodeInChaos 建议).

But MD5 is considered "broken" by security professionals. It depends on exactly what your requirements are: MD5 might be suitable, but more secure hashes like the SHA-2 family would probably be a wiser choice, or even key-strengthening techniques such as PBKDF2 (as CodeInChaos suggests).

请注意,单独选择散列算法不能单独视为安全或不安全.以一种经过验证的、久经考验的方式使用哈希算法很重要.

Note that your choice of hash algorithm alone can't be considered either secure or insecure in isolation. It's important to use the hash algorithm in a proven, tried-and-tested way.

这篇关于MD5安全性好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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