Encoding and decoding scheme converter for the commandline
Go to file
Stefan Friese b60acf2008 added bindings for morse code, bug fix 2024-06-27 23:16:56 +02:00
app added bindings for morse code, bug fix 2024-06-27 23:16:56 +02:00
src/Encoding added bindings for morse code, bug fix 2024-06-27 23:16:56 +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
README.md updated Changelog and README, release of v.0.4.4 2024-06-10 22:09:18 +02:00
Setup.hs
based.cabal added morse encoding, WIP 2024-06-26 23:56:59 +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)