Question about sha256 and AMD kernels
(09-13-2021, 06:47 PM)Snoopy Wrote: i hope i get it right (from your last example), you have data like this


30303930343139323063306134613231 -> hex to ascii = 009041920c0a4a21

009041920c0a4a21 -> interpreted as hex and given as input to sha256-> your searched sha256hash =

if yes, first prepare a charset-file like this
1. hashcat -a 3 --stdout ?h?h > charset.txt
2. open this file with a good texteditor and remove all newlines, linebreaks, so that there is only one line with all chars
from 00 to ff (512, dont be afraid when your file looks messed up, hashcat randomized the output by default )
3. feed hashcat like this
hashcat.exe -m 1400 -a3 -O --hex-charset -1 charset.txt sha256.txt ?1?1?1?1?1?1?1?1

specify an output-file on your own or leave it, see hashcat.potfile for results, the results will look like this


to get your 30303930343139323063306134613231 you have to interpret 009041920c0a4a21 as ascii to hex or use another tool

these "double-conversation" or misinterpreting is not related to sha256 so it must be have to to something with the source of your data

Yes, thats it, like in my last example.
hashed result : 30303930343139323063306134613231 - gives correct hash (from example)

Now, i am still stuck - i tried what you suggested

charset.txt is single-line with 000102030405060708090A....FF

and what i got is - "Integer overflow detected in keyspace of mask: ?1?1?1?1?1?1?1?1"

(with space between 00 01 ... FF - "Invalid hex character detected in mask 00 01....FF")

this is some "hard nut" ...

Messages In This Thread
Question about sha256 and AMD kernels - by alexxx - 09-06-2021, 08:01 PM
RE: Question about sha256 and AMD kernels - by alexxx - 09-15-2021, 01:31 AM