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!

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

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

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay