DEV Community

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

Posted on

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!

Top comments (1)

faizantheprogrammer profile image

Life got easier.