I am working on an app which stores api key in passwords.conf in encrypted form using setup.xml. But now i want to make the app cloud compatible and i need to remove setup.xml. So, I have implemented setup view page for app configuration where user will provide the api key.
Now I have no idea how to store that key as encrypted without setup.xml. I have used this link for setup view implementation which is javascript based
https://github.com/splunk/splunk-app-examples/tree/master/setup_pages/developer_guidance_setup_page
Any help/guidance would be appreciated.