cargo-sealed-0.1.0 is not a library.
cargo-sealed (CLI)
Small CLI for storing encrypted environment variables directly in .env files.
Only values are encrypted, so files remain diffable and Git-friendly. One key per project, no
interactive prompts, safe defaults, and Unix-friendly behavior.
Install
How it works
- Encrypts with ChaCha20-Poly1305.
- Uses the variable name as AAD.
- Stores values as:
ENCv1:<base64(nonce)>:<base64(ciphertext)>
Commands
Examples Generate a key
Set a value from stdin
|
Set a value from a file
Set a value using key from env
|
Read a value
Reveal plaintext (requires key)
Env file format example
DATABASE_PASSWORD=ENCv1:2s8fK0cPpFJ6x2xZ1C9kLw==:mKJrY0GmZCq7cN5h4F2...
Notes
- If a value is not encrypted,
sealed getprints it as-is. - Stdin can be used only once;
--stdinand--key-stdincannot be combined. - For
--value, pass--allow-argvexplicitly.
Exit codes
- 0: success
- 1: variable not found
- 2: decryption or key error
- 3: invalid arguments
- 4: env file error