DEV Community

imduchuyyy 🐬
imduchuyyy 🐬

Posted on

3 2 2 1 1

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! 🔐

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (1)

Collapse
 
tm_vnthanh_bf930e4e704 profile image
Tâm Văn Thanh

nice tool

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay