M
M
mr_chepel2017-07-18 09:58:31
Python
mr_chepel, 2017-07-18 09:58:31

Why do Bynary hash to SHA256 conversion services show different results?

Please help me figure it out.
There is a service fileformat.info
If he set Binary hash for example e2bd539edab3b350c551f2aead2837bd5d329c9f1d782140b66b01e55d8755ef
it displays the result of the SHA256
abaf319886368db465fb80b1e817cf4710b53359192bc0e713934a201d2ba30c
and service CyberChef
if he ask the same hash it displays
6adb04810e099dda69dc59810f6ee16d8c66d45496b52d9a7f181c82e668ab6f
how to make CyberChef showed the same result as the fileformat.info?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mr_chepel, 2017-10-26
@mr_chepel

Long, but I figured it out.
Solution in python

import binascii, hashlib
hash = hashlib.sha256 (binascii.unhexlify('e2bd539edab3b350c551f2aead2837bd5d329c9f1d782140b66b01e55d8755ef')).hexdigest()
print(hash)

>>>abaf319886368db465fb80b1e817cf4710b53359192bc0e713934a201d2ba30c

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question