added base64 encoding for key values