[functions] added base64 helpers