Save very important data to a file
-
Hey!
I have some data that is very important and no one has to access to this data except my application. How can I save such data. As a binary or something else?! Please help.Thanks.
-
@AliReza-Beytari Hi! That's impossible to be answered without more info about the level of security you need. In general, if the data is on someone else's computer together with your software, and your software can access the data, then you can't protect the data against the computer's owner.
-
hi
is the data static?
or will app generate it and then save it? -
@Wieland Some data (e.g. usernames, passwords, tokens, etc.) should be saved.
@mrjj App generate dynamic data.
-
Hi,
That kind of data should at the very least be encrypted. If you really want to save them in a file then maybe something like SQLCipher could help. And here you have a repository to help you build the corresponding plugin for Qt
Hope it helps
PS: Having the database encrypted doesn't mean you don't have to also properly protect passwords and such data.
-
what is the design goal for the privacy/level of protection to file ?
Just make it hard for regular users to look in file ?
or do you need it to be hacker proof as far thats even possible? -
@AliReza-Beytari
well for the file, the qt5-sqlcipher should do.For being hacker proof, its very important you dont store anything
clearly in the exe file.That goes for the variables too.
When u read into memory, make sure its not easy to locate
and read. ( in mem)
so do not store passwords or user names as clean text inside program.
all must be encrypted.
That will only keep noob hackers out.
Anyone pro, will most likely be able to get access if
unlimited access to app and data.