php md5 可以解密吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9396590/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 06:43:27  来源:igfitidea点击:

Is md5 decryption possible?

phpmd5

提问by user1226057

Possible Duplicate:
Is it possible to decrypt md5 hashes?

可能的重复:
是否可以解密 md5 哈希?

I accidentally encrypted some data with the md5 encryption. I need to recover it. How can I decrypt the md5 encrypted data?

我不小心用md5 encryption. 我需要恢复它。如何解密md5加密数据?

回答by

md5is a hashing technique. You cannot decrypt it back.Hashing means, once you are converted it to a encrypted code, you cannot go back! But you can still compare the md5 encrypted value with the another md5 encrypted value to check matches (mostly in the case of password verification and all!)

md5是一种散列技术。你不能解密回来。散列的意思是,一旦你把它转换成加密的代码,你就不能回去了!但是您仍然可以将 md5 加密值与另一个 md5 加密值进行比较以检查匹配项(主要是在密码验证和所有情况下!)

回答by Mark Byers

No, it's not possible in general. MD5 is notan encryption algorithm. Multiple strings map to the same hash. It's impossible to know which of these strings is the "correct" one.

不,这是不可能的。MD5不是加密算法。多个字符串映射到同一个散列。不可能知道这些字符串中的哪一个是“正确”的。

You can however try to use an online database to find a string that gives the correct hash:

但是,您可以尝试使用在线数据库来查找给出正确哈希值的字符串:

回答by hatseflats

It cannot be done. But perhaps some reverse-MD5 indexes have your data, coincidentally. Try this:

这是不可能的。但也许一些反向 MD5 索引有你的数据,巧合。尝试这个:

回答by sgcharlie

Brute force. Not ideal but if you have a general idea of what the string might be, it could work.

蛮力。不理想,但如果您对字符串可能是什么有一个大致的了解,它可以工作。