Implementation of Base64, Base32 and Base16 encoding ref: rfc4648 Supported encoding base64 base64url base32 base32hex base16 Note that base64url does NOT add any padding characters (=).