Frage

I'm developing a Linux application that needs to save some sensible data in order to reload them when the machine reboot.

So I'm investigating on how to save somewhere my data and protect them. (Obviously there will be always a possibility to crack it)

My goal is not to reinvent the wheel, so if there is a working solution, that's what I'm looking for.

War es hilfreich?

Lösung

  1. Add a dedicated user for your application and set proper directory attributes. So other users can't see the directory and files, only root.

  2. Use a simple scramble algorhythm just to make the file hard to read by a simple cat.

  3. Never store passwords, and other sensible information in files.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top