Where .env files usually leak
- Committed to Git by mistake, sometimes in a public repository.
- Pasted into Slack, Teams, WhatsApp or email, where it stays searchable forever.
- Zipped and attached to a ticket or shared drive with broad access.
A safer routine
- Keep a .env.example with placeholder values in Git, never the real file.
- Hand the real values to each person once, through an encrypted, expiring link.
- Rotate secrets when someone leaves the project.
How Hush handles a .env file
- Use "Paste .env": every KEY=value line becomes its own masked field (up to 50 per share), or upload the file itself.
- Everything, including the variable names, is encrypted in your browser before upload.
- The recipient can reveal one value at a time, copy a single field, or copy everything back as a .env block.
How to do it with Hush
- Open "New share", choose Key & value pairs, and click "Paste .env".
- Add your teammate's email or Hush @username and an expiry.
- They open it, click "Copy as .env", and the share is destroyed.
Questions
Are the variable names encrypted too?
Yes. Names, values, labels and file names are all inside the encryption; the server sees only the size and your settings.
Can I send the file itself instead?
Yes. Choose Files and upload it (up to 25 MB per share in total).
Does the teammate need to install anything?
No. It opens in any modern browser, or in the Hush app.
Share it safely in under a minute.
Encrypted on your device. Opened only by who you choose. Then gone. Free with a Hostmargin account.
Start sharing
Related
Share API keys and tokens without leaking themSend Stripe, Razorpay, OpenAI or AWS keys to a developer through an encrypted, expiring link with an access lo...
Share a password securely, then make it disappearSend a password that is encrypted on your device, opens only for the person you choose, and self-destructs aft...
Client logins, handed over properlyWeb agencies and freelancers: collect and hand over hosting, cPanel, WordPress and domain logins with encrypte...