Base64 Encoding/Decoding with the OpenSSL c api