npbackup/PRIVATE/README.md

11 lines
625 B
Markdown
Raw Normal View History

This folder may contain overrides for NPBackup secrets.
If these files exist, NPBackup will be compiled as "private build".
2023-03-27 21:47:37 +08:00
2023-03-30 01:27:03 +08:00
Overrides are used by default if found at execution time.
In order to use them at compile time, one needs to run `compile.py --audience private`
2023-03-27 21:47:37 +08:00
1. You can create a file called _private_secret_keys.py to override default secret_keys.py file from npbackup
2. You may obfuscate the AES key at runtime by creating a file called `_private_obfuscation.py` that must contain
2023-03-28 01:23:09 +08:00
a function `obfuscation(bytes) -> bytes` like `aes_key_derivate = obfuscation(aes_key)` where aes_key_derivate must be 32 bytes.