Skip to content

bx base58 encode

evoskuil edited this page Oct 24, 2014 · 6 revisions

Convert a Base16 value to Base58.

$ bx base58-encode --help
Usage: bx base58-encode [-h] [--config VALUE] [BASE16]                   

Info: Convert a Base16 value to Base58.                                  

Options (named):

-c [--config]        The path to the configuration settings file.        
-h [--help]          Get a description and instructions for this command.

Arguments (positional):

BASE16               The Base16 value to encode as Base58. If not        
                     specified the value is read from STDIN.

See also base58-decode.

Example 1

$ bx base58-encode 031bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006
vYxp6yFC7qiVtK1RcGQQt3L6EqTc8YhEDLnSMLqDvp8D

Example 2

piped commands, round trip

$ bx base16-encode "Satoshi Nakamoto" | bx base58-encode | bx base58-decode | bx base16-decode
5361746f736869204e616b616d6f746f
BJBRbygJtzBfp4gjJG2iqL
5361746f736869204e616b616d6f746f
Satoshi Nakamoto

BX Menu

Clone this wiki locally
You can’t perform that action at this time.