Move base64 conversion from GitHub to securityIO class