Skip to content

Latest commit

 

History

History
37 lines (18 loc) · 1022 Bytes

encrypt_settings.md

File metadata and controls

37 lines (18 loc) · 1022 Bytes

Encrypting GSvar settings

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.

Re-compile GSvar

To encrypt data in the settings file, we need to compile-in an encryption key into the application binary:

  1. Create the file src/cppCORE/CRYPT_KEY.txt.
  2. Insert the encryption key into the file. The encryption key has to be a hex-encoded integer, e.g. 0x0c2ad4a4acb9f023.
  3. Re-build GSvar or at least the cppCORE library.

Encoding strings

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:.

Example

For example, the NGSD password 123456 can be given as plain text:

ngsd_pass = "123456"

Or, encrypted like this:

ngsd_pass = "encrypted:AwtUTQrbAFKiDzc="

--

back to main page