I
I
ioexception12020-01-31 19:53:36
Java
ioexception1, 2020-01-31 19:53:36

How to convert hashCode back to string?

As we know, any word, number, etc. can be converted to hashCode. Is it possible, on the contrary, to convert hashCode into a string? If yes, how exactly?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
GavriKos, 2020-01-31
@ioexception1

No. Hash functions (at least those that are commonly used) are irreversible.
There are certainly options, but you can not call them "transformation".

X
xmoonlight, 2020-01-31
@xmoonlight

Can be converted back to a collision string (or strings if there are more than one).
The collision will be equal to the original only if the given hash has no collisions: it depends on the algorithm and the original (hashed) string.
And correlation of successive stages of reverse hashing is not an easy task.

D
Dmitry Alexandrov, 2020-01-31
@jamakasi666

Technically, it can be reversed, but in practice, depending on the algorithm, it will most likely be brute force. Read about the "Infinite Monkey Theorem". Those. relatively speaking, you will find a hash of 1\2\3\4\5 digits pretty quickly, but something is more difficult
... number pi, and as you know, absolutely everything known and does not exist in the number pi.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question