changing the output of keys management from binary to base64 encoded text