matja / bitcoin-tool

Tool for converting Bitcoin keys and addresses
206 stars 116 forks source link

Input file cannot be read #35

Open duffusmucous opened 6 years ago

duffusmucous commented 6 years ago

./bitcoin-tool --output-format base58check --public-key-compression uncompressed --network bitcoin --input-type private-key --input-format hex --output-type private-key-wif --input-file passcrck.txt Invalid character (ASCII=58) at offset 40 Failed to decode hex input (invalid format).

I have tried everything I even converted the file to unicode characters but I am still getting the same error.

streamofstars commented 4 years ago

It looks like in your passcrck.txt file, there is a colon (":") character somewhere. You defined input format as hex, so you must not feed the tool with ascii characters other than [0-9a-f].

streamofstars commented 4 years ago

@duffusmucous has my answer solved the problem you reported? If so, can you please close the issue?

Alf71 commented 3 years ago

Hi,

I am having the same problem since today. I have generated a HEX list with Password Tech, but I 'm receiving error messages:

Invalid character (ASCII=4294967279) at offset 0 Failed to decode hex input (invalid format).

It works good with the command [openssl rand $[32*keys] | xxd -p -c32]

To be honest, I would use only this command, but I am willing to get several ranges of bits, for example b240, b200, b250, but I don't know how to do it using the openssl command.

Thanks in advance