add base64 encryption support