DEV Community

Discussion on: How to hide API KEY in GitHub repo

Collapse
 
atapas profile image
Tapas Adhikary

Hi Prashant,

This is a cool technique.

I use the dotenv package(npmjs.com/package/dotenv) and .env file to do the same. Have you explored it too?

Collapse
 
sphrases profile image
sphrases

Came here to recommend it. Environment variables are the common way of handling secure strings

Collapse
 
ptprashanttripathi profile image
Pt. Prashant tripathi

Yupp, but this is simple

Thread Thread
 
aboutdavid profile image
David

In my opinion, Security > Simplicity because well, your (users) security matter.

Thread Thread
 
ptprashanttripathi profile image
Pt. Prashant tripathi

hmm