QSetting to create lock on .ini file
-
@npatil15 said in QSetting to create lock on .ini file:
Please give your sugestions.
It's not possible with Qt.
-
Hi
Its normal is done via OS access right restrictions and not something Qt can do for you.You can encrypt/scramble the values to make it
much harder to edit manually.
like
https://wiki.qt.io/Simple_encryption_with_SimpleCrypt
or similar ( its old) . dont use base64 as that easy still to manually change.Any user wanting access can reverse engineer your app and get encryption key but it would make it very hard for ordinary user jus t to open and edit the ini file.
-
-
Yes, LOCK means one should not able to change it manually, that's it!
during running and not running as well, want only application can change it.It's not much secure file, but as a feature I dont want user should edit file manually as it should be editable from application only.
-
This is not even possible on the os level. When you program can read/write the file than the user can do it also.
-
@Christian-Ehrlicher
Hi
In normal install cases then yes.
its possible to run the app with other credentials than the login user and thereby grand it
access to resources the user cannot see. But im pretty sure its outside of the possibilities of the poster. :)