Expand description
§envguard
Encrypted .env files that just work. Zero config, single binary, built-in team sharing.
§Overview
envguard encrypts your .env secrets using age
so you can commit them directly to git. Your team shares public keys, not secrets.
§CLI Usage
envguard is primarily a command-line tool:
cargo install envguard
envguard init # Generate encryption keys
envguard set API_KEY "sk-123" # Add an encrypted secret
envguard run -- npm start # Run with secrets injected
envguard trust age1abc... # Add a teammateSee the README for full CLI documentation.
§Library Usage
The crypto and store modules can also be used as a library for
programmatic access to envguard vaults:
crypto::generate_identity— Generate a new age key paircrypto::encrypt— Encrypt data for a set of recipientscrypto::decrypt— Decrypt data using an identitycrypto::parse_recipient— Parse an age public key stringstore::load_identity— Load the current user’s identity (or fromENVGUARD_IDENTITYenv var)store::load_recipients— Load all trusted public keysstore::load_secrets— Decrypt and load secrets for an environmentstore::save_secrets— Encrypt and save secrets for an environmentstore::parse_env— Parse a.envformatted string into key-value pairs