DEV Community

imduchuyyy ๐Ÿฌ
imduchuyyy ๐Ÿฌ

Posted on

CryptEnv: Secure Your Environment Variables ๐Ÿ”

As developers, we often rely on .env files to manage sensitive environment variables. But have you ever thought about how insecure this practice is? .env files store secrets in plain text, making them vulnerable to accidental leaks, unauthorized access, or exposure in public repositories.

Thatโ€™s why I built CryptEnv โ€“ a simple yet powerful tool that lets you securely store, manage, and use environment variables without exposing them in plaintext.

๐Ÿš€ Why You Need CryptEnv

โœ… No More Plaintext Secrets โ€“ Store your environment variables in an encrypted, global base store instead of a raw .env file.

โœ… On-Demand Decryption โ€“ Your secrets are only decrypted when needed, and you must unlock them using a password before accessing them.

โœ… Auto-Clearing Environment โ€“ Once your process finishes, CryptEnv automatically clears the variables, leaving no trace behind.

โœ… Easy Integration โ€“ Works seamlessly with any programming language or framework that uses environment variables.

โœ… Open Source โ€“ Completely free and available for the community! Check it out on GitHub: CryptEnv Repository


๐Ÿ”ง How CryptEnv Works

1๏ธโƒฃ Store your secrets securely

crypt-env set DATABASE_URL "postgres://user:password@host/db"
Enter fullscreen mode Exit fullscreen mode

2๏ธโƒฃ Unlock and use them in your process

crypt-env exec "node app.js"
Enter fullscreen mode Exit fullscreen mode

3๏ธโƒฃ Environment variables are cleared after the process ends

Thatโ€™s it! No more insecure .env files lying around.


๐Ÿ”ฅ Who Should Use CryptEnv?

๐Ÿ’ก Backend Developers โ€“ Prevent secret leaks in code repositories.

๐Ÿ”’ DevOps & Security Engineers โ€“ Improve security posture by eliminating plaintext secrets.

๐Ÿ“ฆ Open Source Contributors โ€“ Keep credentials safe while working in public repositories.

๐Ÿ’ป Anyone Using .env Files โ€“ If youโ€™re using .env, you need CryptEnv.


๐Ÿ“Œ Get Started Today!

Ready to level up your environment variable security? Try CryptEnv now! ๐Ÿš€

๐Ÿ”— GitHub Repository

If you like this project, consider starring it on GitHub โญ and sharing it with your fellow developers!

Letโ€™s build secure and privacy-focused applications together! ๐Ÿ”

Top comments (1)

Collapse
 
tm_vnthanh_bf930e4e704 profile image
Tรขm Vฤƒn Thanh

nice tool