implementing base64 and key-support