Encoding and decoding scheme converter for the commandline
Go to file
Stefan Friese b6ad312970 Changed base45 to Bytestring in and output 2024-06-08 22:04:28 +02:00
app Changed base45 to Bytestring in and output 2024-06-08 22:04:28 +02:00
src/Encoding Changed base45 to Bytestring in and output 2024-06-08 22:04:28 +02:00
test Regression atm, Moved from Unicode/Utf8 to ByteString so binary data is encoded correctly. WIP 2024-06-07 18:09:20 +02:00
.gitignore added error handling to base91, still reworking b62 2024-05-09 00:21:53 +02:00
CHANGELOG.md added rotate functions for n rotations of the alphabet 2024-05-22 21:58:40 +02:00
LICENSE Initial commit 2022-05-17 00:18:01 +02:00
README.md added tests section 2024-05-22 22:36:17 +02:00
Setup.hs initalize 2022-05-17 00:23:30 +02:00
based.cabal Regression atm, Moved from Unicode/Utf8 to ByteString so binary data is encoded correctly. WIP 2024-06-07 18:09:20 +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

Do not forget to set $LD_LIBRARY_PATH to the directory of your static libs.

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!

Tests

Run cabal test

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
  • Rotate (1..26)
  • Unicode to hex and vice versa
  • Unicode to dec and vice versa
  • Unicode to oct and vice versa
  • Unicode to bin and vice versa
  • Char to Hex and vice versa
  • Decimal to Hex and vice versa
  • Oktal to Hex and vice versa
  • Binary to Hex and vice versa