Environment Variables
Volaris can read your key from an environment variable. To do this, set the VOLARIS_KEY
variable, and Volaris will automatically detect and use it for encryption and decryption.
Even though Volaris uses different salts and nonces for each encryption operation, which mitigates risks associated with reusing keys, it is still not considered best practice to reuse keys across different sessions or files.
For example, you can set the environment variable in a Unix-based system like this:
export VOLARIS_KEY="your_key_here"
After setting the environment variable, Volaris will automatically pick up the key from VOLARIS_KEY
when running encryption or decryption commands.