Base64 scheme implementation in Bash

Sat, 31 Jul 2010 09:51:07 +0200
Tags: bash

The Base64 encoding/decoding scheme has been implementing in many languages such as ANSI C, C++, C#, D, Java, JavaScript, Perl and many others. I found interesting to implement it in bash by using its powerfull bitwise operators.

(Updated the 2011/05/03) This script is currently used to illustrate "extended brace expansion" and "bitwise operators" in the excellent Advanced Bash Scripting Guide.