A base64, 32 and 16 encoder and decoder