Avec de vrais morceaux de 2.0 !

Bubble Babble CLI encoder / decoder

At my own surprise there is no CLI tool to encode or decode a string to and from the Bubble Babble binary encoding. That's a shame as this encoding would be much more useful than Base64 for exchanging binary data orally or on paper.

So here is one quick PHP script based on my own PHP5 BubbleBabble library to do that: bubblebabble.php

Usage is pretty simple:

$ bubblebabble.php hello.txt

$ bubblebabble.php -d - <<< xifok-mirid-bodik-nemyg-temyl-dipyd-cedyx
Oh, Hi Mark!

$ fortune | bubblebabble - > encoded.txt

$ bubblebabble -d encoded.txt 
Big book, big bore.
		-- Callimachus
Write a comment
__   _____ _ __ 
\ \ / / _ \ '__|
 \ V /  __/ |   
  \_/ \___|_|   

URLs will create links automatically.
Allowed HTML tags: <blockquote> <cite> <pre> <code> <var> <strong> <em> <del> <ins> <kbd> <samp> <abbr>


After saving the file, le content is : "

<b>Fatal error</b>: Namespace declaration statement has to be the very first statement in the script in <b>/home/bohwaz/www/bohwaz.
net/misc/bubblebabble.php</b> on line <b>3</b>

I guess your web server interprets the php ;)