use_staticrypt!() { /* proc-macro */ }Expand description
Initializes the use of staticrypt. Should be used at the top level of a crate, i.e. in your
main.rs or lib.rs (wherever crate is pointing to).
This macro will declare a global const named STATICRYPT_ENCRYPT_KEY which contains the key
used to decrypt contents encrypted with staticrypt. The key itself is not encrypted.
The key is derived from the seed stored in the environment variable STATICRYPT_SEED. If
STATICRYPT_SEED is missing, or fewer than 32 characters long, it will be padded with randomly
generated bytes until it is of length 32.
If you desire your builds to be reproducible, set STATICRYPT_SEED to contain 32 characters.
This way, both the generated key and all nonces will be predictable.