i need a decoding algorithm of SHA-512?

please suggest me... if decoding algorithm is not available then please tell me how can i decode the hash value generated by coding algorithm?

3 Comments

I've deleted the double posting.
thanku walter ans simon sir.....for suggeting me...

Sign in to comment.

 Accepted Answer

Jan
Jan on 6 Jun 2013
You cannot decode a hash. This is the purpose of hashes.
Note that a 512-bit hash is not unique, when it is calculated for a message with 513 or more bits.

8 Comments

The difficulty of reversing a hash is what makes any particular hash useful for cryptographic purposes, but it is not the purpose of hashes.
@Walter: You are right. See [EDITED]
[EDITED] does not seem to have shown up ?
thnks sir both of you
A hash function is any algorithm or subroutine that maps data sets of variable length to data sets of a fixed length. For example, a person's name, having a variable length, could be hashed to a single integer of bounded size.
Notice that these functions are not required to be injective (because distinct inputs may map to the same output) and are not required to be surjective (there may be elements of the output range that turn out to be impossible to generate.
@Walter: There seems to be a serious problem for this thread. I've posted a longer comment two times, but they disappeared when I reloaded the thread. Then I added the comment as [EDITED] in the answer, but it vanished also obviously. Not I hesitate to waste more time again and check at first, if at least this comment is accepted.
meta comment reached here
Jan
Jan on 7 Jun 2013
Edited: Jan on 7 Jun 2013
Yes, even after relaoding the above comment is still there. Strange! So I try it again:
@Walter: Yes, you are right. My message is really too sloppy. A short message can be reconstructed from the hash, but this consumes much time and a brute-force-attack is a fair approach. But decoding is not the intention of hashes.
Using "purpose" as synonym for "not the intention" was not smart.

Sign in to comment.

More Answers (0)

Asked:

on 6 Jun 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!