Title: base6 to base16 script beside bitaddress.org ? Post by: zappylappy on February 28, 2021, 11:20:31 AM I am looking for a webbased script that converts base 6 (Dice) into base 16 (Private Key), that can be used on a offline PC.
I tried to code it, but parseInt (JavaScript Function) has a problem with big numbers: var i = 32341234253543242345555; out1 = parseInt (i, 6); out2 = out1.toString(16); document.write (out2); I am also aware of bitaddress.org, but would like to have a second script that confirms the correct output of the later. Has anyone a hint for a simple script? Title: Re: base6 to base16 script beside bitaddress.org ? Post by: HCP on March 01, 2021, 12:45:37 AM There is a simple bash script available here: https://github.com/swansontec/dice2key
It's not web-based, but it is very simple! ;) They have a full writeup on creating keys from dice here: https://www.swansontec.com/bitcoin-dice.html Title: Re: base6 to base16 script beside bitaddress.org ? Post by: NotATether on March 02, 2021, 10:54:39 AM I guess you can reuse my other script that converts base6 to base58 (https://bitcointalk.org/index.php?topic=5318995.msg56425623#msg56425623) if I modify it to return hex output instead?
Code: import math Code: Enter the dice numbers: 123456 Note that this code assumes that 6 represents 0 in base6, which can only represent the numbers 0,1,2,3,4,5. I am looking for a webbased script that converts base 6 (Dice) into base 16 (Private Key), that can be used on a offline PC. Unless you are looking for stuff written in JavaScript Node.js, or you also want some HTML file to open a browser to it, "webbased script" and "can be used on an offline PC" sounds conflicting to me. |