Encoding and decoding scheme converter for the commandline
Go to file
Stefan Friese 778f2c6e7a reworked functions to display Unicode correctly 2024-05-20 23:28:14 +02:00
app added test for more functions, solved bugs in accordance to that functions, mainly Unicode support 2024-05-20 22:39:43 +02:00
src/Encoding reworked functions to display Unicode correctly 2024-05-20 23:28:14 +02:00
test added test for more functions, solved bugs in accordance to that functions, mainly Unicode support 2024-05-20 22:39:43 +02:00
.gitignore added error handling to base91, still reworking b62 2024-05-09 00:21:53 +02:00
CHANGELOG.md fixed 2023-07-25 23:21:27 +02:00
LICENSE
README.md typos 2022-09-19 23:13:44 +02:00
Setup.hs
based.cabal added tests for b64 2024-05-19 15:22:13 +02:00

README.md

based

A commandline tool that lets you encode and decode most of the bases.

Release binary is statically linked and stripped via

cabal v2-build --enable-executable-static -O2
strip --strip-all based

Compilation

  • If you want to compile your own build, link it dynamically via
git clone https://git.stefan.works/whx/based.git
cd based/
cabal install
cabal run

Usage

  • Pipe via stdin to transcode
  • Modes are encode and decode
  • Encoding is done in the following way
echo Hello, World! | based encode --b91
>OwJh>}AQ;r@@Y?FF
  • Decoding is implicated in the following way
echo '>OwJh>}AQ;r@@Y?FF' | based --b91
Hello, World!

What is Transcoded?

The following are the supported encodings

  • Base91
  • Base85
  • Base64
  • Base64url
  • URI Encoding
  • Base62
  • Base58
  • Base32
  • Quoted-Printable
  • UU Encoding
  • XX Encoding
  • yEncoding
  • Char to Hex and vice versa
  • Decimal to Hex and vice versa
  • Oktal to Hex and vice versa
  • Binary to Hex and vice versa