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 xifok-mirid-bodik-nemyg-temyl-dipyd-cedyx $ 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
Armageddon
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 ;)
BohwaZ
Damn. Thank you, this is fixed.
Armageddon
Thanks to you :)
Bad Lee
Could someone rewrite this in Python?
BohwaZ
Just do it :) There is a Python lib here: https://github.com/eur0pa/bubblepy
Anonymous
xipak-comok-repuk-vanik-dytuk-dimyk-sinyx
Anonymous
xipak-comok-repuk-vanik-dytuk-dimyk-sinyx