Keep your code secure by using environment variables and env files

Securely load a file containing all of our app’s required, confidential data like passwords, tokens, etc

Mike Huls
Towards Data Science
6 min readNov 1, 2021

--

Let’s enrich this beautiful environment with some variables (image by Rob Morton on Unsplash)

Your code needs to connect to a database. For this it needs a password to that database. How can you use this password in your app in such a way that you can both connect to the…

--

--