Skip to content
joeshawPublic

About

Convert between different base-n encoded strings at the command-line

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple CLI tool that converts data between various bases I use often.

Install

go install github.com/joeshaw/basen@latest

Usage

basen <from base> <to base> <value>

For example:

$ basen b62 b36 2OtJsTXODC2OhUQ0M7Wk0b
4o649lo8xm7utcy1cmahxxtvx

You can create custom bases as well by specifying an alphabet:

$ basen hex custom:0123456789 ff
255

Supported bases

  • base36, b36, 36
  • base62, b62, 62
  • base64, b64, 64
  • base10, b10, 10, int
  • hex
  • raw
  • custom:

License

MIT

About

Convert between different base-n encoded strings at the command-line

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址