]> git.gir.st - base1.git/summary
 
descriptionbase64 alternative for all those homebrew unary computers :^)
last changeThu, 10 Nov 2016 02:17:06 +0000 (03:17 +0100)
readme

base1

Reimplementation of ferno's base1 in C for UNIXoid shells.

Why

Building

To generate the binary, run make. Then, copy the resulting base1 binary to a directory in your $PATH.

Usage

base1 uses GNU's base64 tool as a reference and therefore has similar command line arguments. This means, you can either pipe data in or give a file as an argument.

The non-standard parameter -t will return the length of the string to be encoded, or warn if it will overflow.

'Hello World'-Example:

Can't do: even on 64 bit machines the length of the resulting string will be larger than unsigned long long int. I en- and decoded the string Hallo - it took 52 minutes!

echo -n "Hi" | ./base1 -w 0

will output 18794 As.

License

base1 is released under the GNU General Public License, version 3.
See LICENSE for details. © 2016 Tobias Girstmair, isticktoit.net

In other Languages

shortlog
2016-11-10 girstadded return values to indicate failure master github/master
2016-11-10 girstadded license (gplv3)
2016-11-10 girstFirst version
heads
7 years ago master
Imprint / Impressum