LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   BIP 39 checksum in Tails (https://www.linuxquestions.org/questions/linux-newbie-8/bip-39-checksum-in-tails-4175721674/)

92f150 02-04-2023 09:35 AM

BIP 39 checksum in Tails
 
Hello

I wish to compute bip39 checksums in Tails.

The process is to hash a 256 bit number in sha256.

For this to work, the hash input has to be either hex or binary. If binary, it has to allow for the full 256 bit number.

I was able to break it into 32 bytes and convert it into a 64 digit Hex string which provided the correct checksum when I clicked "hex" as the input. This worked on string-o-matic and sha256 online,

but I can't make it work in Tails.

I know NOTHING about using Linux.

I figured out

printf 92f1506311321a73a9a2a6ff6c0e89b5b90515c7afb320e5544ae1e628188a11 | sha256sum

but it's not giving the right answer, which is 96206a24d6d3b854e5ef55544c5de79476be78d6d322253a66191742fd7dc947

Tyvm in advance. Off to celebrate my daughter's 4th bday.

pan64 02-05-2023 03:46 AM

Hi, and welcome here, at LQ

without knowing anything you implemented and tried hard to say anything.
http://catb.org/~esr/faqs/smart-ques...html#beprecise


All times are GMT -5. The time now is 01:51 AM.