Feature : Use global variable BASE64_PAD instead of the local variable pad.