<分区>
Possible Duplicate:
Is it possible to decrypt md5 hashes?
我使用了md5.new()
; md5.update("aaa")
,md5.digest()
形成数据 "aaa"
的 md5 散列。如何使用python取回数据?
<分区>
Possible Duplicate:
Is it possible to decrypt md5 hashes?
我使用了md5.new()
; md5.update("aaa")
,md5.digest()
形成数据 "aaa"
的 md5 散列。如何使用python取回数据?
最佳答案
您无法解码 md5 散列,因为散列是一个最好被认为是 one-way encoding 的过程(也就是说,不能对散列的内容进行去散列处理;只能通过检查已知散列列表或对一组输入进行散列并将生成的散列与您尝试的散列进行匹配来确定散列的内容“解码”)。
引用维基百科,这种哈希算法的主要特点是:
it is infeasible to find a message that has a given hash,
it is infeasible to modify a message without changing its hash,
it is infeasible to find two different messages with the same hash.
当今此类算法最常见的用途是:
如果你想对数据进行双向加密,你需要查看 Python 的其他加密库(通常,Stackoverflow 有一个 recommendation)。
关于python - python中有md5解密函数吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2760911/