The settings files settings.ini
and GSvar.ini
can contain sensitive information like passwords.
How sensitive information in the settings files can be encrypted is described in this document.
To encrypt data in the settings file, we need to compile-in an encryption key into the application binary:
- Create the file
src/cppCORE/CRYPT_KEY.txt
. - Insert the encryption key into the file. The encryption key has to be a hex-encoded integer, e.g.
0x0c2ad4a4acb9f023
. - Re-build GSvar or at least the cppCORE library.
Now GSvar can be used to encrypt any string with the encryption key using the dialog at Help > Encrypt
.
The encrypted string can then be used in the settings file with the prefix encrypted:
.
For example, the NGSD password 123456
can be given as plain text:
ngsd_pass = "123456"
Or, encrypted like this:
ngsd_pass = "encrypted:AwtUTQrbAFKiDzc="
--