Encoding and decoding scheme converter for the commandline
Go to file
Stefan Friese 5e4a146b4f updated Changelog and README, release of v.0.4.4 2024-06-10 22:09:18 +02:00
app updated Changelog and README, release of v.0.4.4 2024-06-10 22:09:18 +02:00
src/Encoding fixed a bug in url encoding, complete test coverage for all encodings now 2024-06-10 20:54:23 +02:00
test fixed a bug in url encoding, complete test coverage for all encodings now 2024-06-10 20:54:23 +02:00
.gitignore added error handling to base91, still reworking b62 2024-05-09 00:21:53 +02:00
CHANGELOG.md updated Changelog and README, release of v.0.4.4 2024-06-10 22:09:18 +02:00
LICENSE Initial commit 2022-05-17 00:18:01 +02:00
README.md updated Changelog and README, release of v.0.4.4 2024-06-10 22:09:18 +02:00
Setup.hs initalize 2022-05-17 00:23:30 +02:00
based.cabal updated Changelog and README, release of v.0.4.4 2024-06-10 22:09:18 +02:00

README.md

based

A commandline binary-to-text encoder which has most common bases included.

Release binary is statically linked and stripped via

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

Do not forget to set $LD_LIBRARY_PATH to the directory of your static libs, e.g. export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu.

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

Download Binary

If you want to download the statically linked binary, fetch the latest release from https://git.stefan.works/whx/based/releases .

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!

Tests

Run cabal test

What is Transcoded?

The following are the supported encodings

  • Base91
  • Base85
  • Base64
  • Base64url
  • URL Encoding
  • Base62
  • Base58
  • Base45
  • Base32
  • Base16
  • Base10
  • Base2
  • Quoted-Printable
  • UU Encoding
  • XX Encoding
  • yEncoding
  • Rotate (1..26)