Skip to content

curet-dev/nextdotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nextdotenv

Secure .env encryption for git commits.

Installation

npm install -g nextdotenv
# or
npx nextdotenv <command>

Commands

Command Description
backup Encrypt .envcrypted.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 web

Security

  • AES-256-GCM encryption
  • PBKDF2 (100k iterations)
  • Unique salt and IV per backup
  • Rate limiting on web interface

License

MIT

About

Secure .env encryption for git commits

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published