I have written an Electron app. It's working fine. I use local storage to save all the options that can be made in the app. That includes database configuration.
In a browser this is may a good idea because a website may be able to hack it?
This is not a website but an Electron app that does not load any webpages except for the main index html file.
Should I use local storage for database config?
So, should I use local storage for database config if I care about basic security? It's not a bank (hash not needed), but it should not be open to the world to get.
Except for the main questions, there are some optional subquestions around it.
- If it's not a good idea, what should I use instead?
- If it's not a good idea, how could it be hacked when I decide what goes into the html?
- Local storage is not a file. Is there a chance the settings may be lost and gone?