.env files
How to share a .env file securely
A .env holds every key a project needs. Send it once with a self-destructing link — or store it per environment so nobody has to ask again.
Send it once: one-time link
Copy the .env contents
— Paste up to 10,000 characters into the secret box.Encrypt in your browser
— AES-256-GCM; the key stays in the link after “#”.Burn after reading
— The teammate opens it once and copies the values.
Share it every time: a project vault
If new developers keep asking for the same .env, put it in a DevNest project. Paste the .env and Smart Import splits it into databases, services and keys per environment. Share staging with a contractor and keep production to yourself.
Never commit a .env to Git
Once a value is in Git history it is in every clone, fork and CI cache — even after you delete the file. Commit a .env.example with key names only, and share the values through an encrypted channel.
Frequently asked questions
Can I attach the .env file itself?
Paste its contents instead — text is encrypted end-to-end in your browser, which is the safest option.
What about rotating keys after sharing?
Rotate any key that was ever sent in plain text. With one-time links, nothing stays behind to leak.
Related
- One-time secret link — Send a password, API key or .env file with a link that self-destructs after one view. Encrypted in your browser (AES-256), optional passphrase. Free, no signup.
- Share a password — The safe way to send a password to a colleague or client: an encrypted link that self-destructs after one view. Free, no signup, nothing left in chat history.
- Share an API key — Send API keys, access tokens and webhook secrets with an encrypted link that self-destructs. Keep long-lived keys organised per project and environment.
- Share an SSH key — Send a private key, .pem, .ppk or .p12 certificate with a one-time encrypted link. Files are virus-scanned, encrypted and deleted after download.
- Send credentials to clients — Agencies and freelancers: send hosting, CMS and admin logins to clients with self-destructing links, or share a read-only project with a password and end date.
- Privnote & OneTimeSecret alternative — A Privnote or OneTimeSecret alternative for developers: AES-256 encryption in your browser, passphrases, key-file attachments. Free, no signup.