Argon2id + XChaCha20-Poly1305 Vault
cbash vault encrypts API tokens inside vault.json beside config.toml. Normal commands never open the vault unless a profile sets vault:<KEY>.
-
KDF
Argon2id (
v0x13):64 MiBmemory,3iterations,4lanes, 16-byteOsRngsalt -
AEAD cipher
XChaCha20-Poly1305with 256-bit key and 192-bit random nonce per save -
Tamper check
Header metadata is bound via AAD; Poly1305 authenticates both ciphertext and header. Any 1-bit edit fails with exit
11. -
Memory & I/O
zeroize::Zeroizingwipes keys on drop. Atomic temp rename with0600Unix mode. -
Normal-run tax
0 msKDF cost when executing subscription CLIs or env-var profiles.