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!

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (2)

Collapse
 
faizantheprogrammer profile image
Faizan

Thanks!,
Life got easier.

Collapse
 
mikolaj_marciniak_e04512f profile image
Mikolaj Marciniak

doesnt work

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay