add functions for base64 conversion with padding