Need some help related to sha512

87 views Asked by At

i want to get first character of original string from hashe sha512. The format of my original string is it have 32 characters. first character in set of { 1, 2, 3, 4...9, T,J,Q,K } the second character in set of { D, S, H, C } the third character is "-" and last characters in set of { a to z, A to Z, 0 to 9 } i want input is "e9353e5aa1dedb3eb4767da8d21b81d7dbf10fa8f23e4704084c989edf5293a46f41f8b3c77c6f828ccf1f688585a52fe0b0601b0c2485af656579bb9b5cd48f" this is hashed string of "1S-74iaoSurg6nVxMzkqwVQMcmWvzmpP"

i want output is "1"

I will be grateful if somebody help me out in this. Thanks

1

There are 1 answers

2
Maarten Bodewes On

You can only get the input for the output of a one-way hash function by trying every input value (if possible in the order of likelihood).

There are 13 options for that first character, 4 for the next one, and 62 characters in the final 29 characters of the string. We can disregard the single dash.

That makes 13 * 4 * 62 ^ 29 = ~5 × 10^53 possibilities to test. So if this is all you have that makes this impossible to solve. It's equivalent to breaking a 178 bit AES key (calculate by taking the 2-log of the number of possibilities, or by dividing 53 by about 3 and then multiplying with 10 for a quick approximation), if such a thing would exist.