Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kubetrail/base58

CLI: Encoder decoder in base58
https://github.com/kubetrail/base58

base58 decoders encoder golang

Last synced: about 2 months ago
JSON representation

CLI: Encoder decoder in base58

Awesome Lists containing this project

README

        

# base58
encoder decoder in base58

## installation
This step assumes you have [Go compiler toolchain](https://go.dev/dl/)
installed on your system.

download code to a folder, cd to it and run `go install`

## usage
To encode pass input as arguments
```bash
base58 this is a test
jo91waLQA1NNeBmZKUF
```

or pass input via STDIN
```bash
echo -n this is a test | base58
jo91waLQA1NNeBmZKUF
```

> Pl. note that the STDIN is ignored if arguments are provided

To decode use flag `-d`
```bash
base58 -d jo91waLQA1NNeBmZKUF
this is a test
```

or pass input via STDIN
```bash
echo -n jo91waLQA1NNeBmZKUF | base58 -d
this is a test
```

```bash
echo hello | base58 | base58 -d
hello
```