nextdotenv
v1.0.1
Published
CLI tool to encrypt and decrypt .env files with password protection
Maintainers
Readme
nextdotenv
Secure .env encryption for git commits.
Installation
npm install -g nextdotenv
# or
npx nextdotenv <command>Commands
| Command | Description |
|---------|-------------|
| backup | Encrypt .env → crypted.env |
| restore | Decrypt crypted.env → .env |
| update | Re-encrypt after changes |
| diff | Compare .env with crypted.env |
| rotate | Change encryption password |
| status | Show file status (no password) |
| verify | Check if password is correct |
| template | Create .env.example from .env |
| web | Start web interface |
Usage
# Encrypt
npx nextdotenv backup
# Decrypt
npx nextdotenv restore
# Re-encrypt after changes
npx nextdotenv update
# Check status
npx nextdotenv status
# Verify password
npx nextdotenv verify
# Compare changes
npx nextdotenv diff
# Create .env.example
npx nextdotenv template
# Web interface
npx nextdotenv webSecurity
- AES-256-GCM encryption
- PBKDF2 (100k iterations)
- Unique salt and IV per backup
- Rate limiting on web interface
License
MIT
