I'm aware of the following ..
- Saving them using
Storage
api is not secure, since they are openly accessible on disk - Could encrypt them before saving to
Storage
, but decrypt mechanism is well known - Credentials are only secure if laptop is powered off :)
I need the username and password since I make a login request to my web service inside my background.js
script once loaded:
xmlhttp.setRequestHeader('Authorization', 'Basic ' + btoa(username + ':' + password));
Would the most secure method be, provide a UI which does not persist the credentials?
When form submitted I make the login request using provided username and password. So every-time browser is loaded, user would be required to re-enter the credentials