DEV Community

Cover image for How To Hide Your .env While You're Livestreaming
Lucia Cerchie
Lucia Cerchie

Posted on

16 1

How To Hide Your .env While You're Livestreaming

Note: This article assumes basic knowledge of VSCode.

Here's how to start using John Papa's VSCode extension Cloak to hide .env secrets, especially helpful when you're livestreaming!

  • Search 'Cloak' in VSCode extensions and install it.

Screen Shot 2021-08-02 at 2.27.54 PM

  • Open up a .env file with your secrets in it. It should look something like this:

Screen Shot 2021-08-02 at 2.25.47 PM

  • Open up your Command Palette and hit 'Cloak: Hide Secrets'

Screen Shot 2021-08-02 at 2.28.52 PM

And there you have it! Your secrets are hidden! You can un-hide them by running the 'Cloak: Show Secrets' command. Screen Shot 2021-08-02 at 2.29.53 PM

Note: If you copy/paste, your secret will be visible in the file you pasted it in.

PS- many thanks to @nickytonline who pointed out the usefulness of this extension!

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (2)

Collapse
 
faizantheprogrammer profile image
Faizan

Thanks!,
Life got easier.

Collapse
 
mikolaj_marciniak_e04512f profile image
Mikolaj Marciniak

doesnt work

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