如何反转SHA1加密文本 [英] How to reverse SHA1 Encrypted text
问题描述
我需要将SHA1加密文本反向翻译为纯文本。
I have a requirement to reverse translate a SHA1 encrypted text to plain text.
我需要Java代码。
很多论坛说,它不能做,但我发现了一个链接 http:/ /www.stringfunction.com/sha1-decrypter.html 这样做完全一样。我已经测试过了。现在我需要用Java实现的算法。
many forums say that it cant be done but i have found a link http://www.stringfunction.com/sha1-decrypter.html which does exactly the same. I have tested it. Now i need the algorithm to implement in Java.
请帮助!!!
推荐答案
这是不可能的。 SHA1像所有加密摘要算法一样,不是加密算法,而是散列算法。它需要任何文本,只要你想要,并将其转换成几个字节,在一种不可能恢复,按设计。加密散列的整个点是单向的,因此不可能恢复。如果可能,算法将是无用的。
It's plain impossible. SHA1, like all cryptographic digest algorithms, is not an encryption algorithm, but a hashing algorithm. It takes any text, as long as you want, and transforms it into a few bytes, in a way that is impossible to revert, by design. The whole point of a cryptographic hash is to be one-way, and thus impossible to revert. If it was possible, the algorithm would be useless.
这篇关于如何反转SHA1加密文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!