enigma-env
v3.0.1
Published
Encrypt/decrypt environment variables stored on disk
Maintainers
Readme
enigma-env
enigma-env is a Node.js package designed to securely encrypt and decrypt your .env file using AES-256-GCM authenticated encryption.
This is a breaking v2 release that improves security, adds tamper protection, and uses full dotenv compatibility for parsing environment variables.
Instead of distributing raw .env files, you can safely commit an encrypted .enigma.env file and deploy it using a single secret key:
ENIGMA_ENV_KEY
🔐 Key Improvements in v2
- AES-256-GCM (authenticated encryption)
- Tamper detection (auth tag verification)
- Breaking format change (
ENIGMA_ENV_V2) - Uses
dotenvfor full.envcompatibility - Secure file permissions (0600)
--forcerequired for key overwrite- Prevents empty
.envencryption - Safer environment variable loading
📦 Installation
npm install enigma-env