Using openssl base64 functionality