Encoding and decoding scheme converter for the commandline
Go to file
Stefan Friese 3bc2062bf3 incremented to minor version 0.4.5 2024-09-25 23:36:19 +02:00
app added tap code 2024-07-02 23:02:51 +02:00
src/Encoding added tap code 2024-07-02 23:03:58 +02:00
test added test for rotate function and yencode/decode 2024-06-11 14:48:57 +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 incremented to minor version 0.4.5 2024-09-25 23:36:19 +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)