preseal encrypts env vars before your host sees them, in one npx command

DavidWells · x · 2026-11-14

DavidWells revisits his 'dumb-sounding' trick: encrypt your env vars before your host ever sees them, then hardcode the key in your code to protect secrets like Stripe keys. It's now one command — npx preseal set STRIPESECRETKEY --to netlify — sealing encrypted secrets straight to Netlify.

Related event: preseal encrypts environment variables before deployment with one command(2 posts)→

Original post →

More from coding & agent

coding & agent channel →