Python Quick Tip: Hiding Passwords and Secret Keys in Environment Variables (Windows)

preview_player
Показать описание
In this Python Programming Tutorial, we will be learning how to hide passwords and secret information within environment variables on Windows machines. Hard-coding secret information is a common mistake that beginners make when learning Python. Hiding this information within environment variables allows you to access your secret information within your code without anyone else being able to see these values from your source code. Let's get started...

The code from this video can be found at:

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:

#Python
Рекомендации по теме
Комментарии
Автор

one of the best channels out there for python, your channel has been one of my best references thank you for your tutorials

krenewable
Автор

I think your videos are my fav now since you just go into exactly what the video is about without any silly music or anything =p

Zero_ss
Автор

Here's a shortcut to get to environment variables quicker.


1) Press Windows key and when the search bar shows up, type in 'env'
2) Click on 'Edit the system environment variables' and you'll directly be taken to the window where you can edit you env variables.

neerajankam
Автор

Absolute Best Python teacher! Simple, straight to the point, all details explained! Just amazing!

Asparuh.Emilov
Автор

Yes Finallt someone who just tells me what I want to know and how to do it! I have been looking for this for days!

ebeldekoning
Автор

Thank you so much! Was spending too much time online to fix my error, but all I had to do was close and reopen vs code.

marcosrod
Автор

We can also use windows credential manager for this purpose, one added benefit is that the credentials-password is stored as a hidden field, this can be accessed using keyring library.

mihirjain
Автор

Thanks a lot for this. I also thanks those who do comment on the problems they faced and the possible solution....much love🥰

ABASSANIMERIKUKU
Автор

Incredibly easy to understand, easy to do, and quickly explained. Thank you very much my friend.

yatagan
Автор

Started using Python in 2024 and I love this quick tip :)

abhi
Автор

Omg, u saved my day. I literally have to come up like this today. Thanks for the video!

karthickraju
Автор

woah. i've gotta come back to your channel later on, this was amazing. quick, simple, useful, easy to understand, perfect pacing! thanks!!!

iheartTH
Автор

2020? still one of the best channel for Python coding.... Please keep it up

lloydbalogun
Автор

You know you are good. no confusing instructions whatsoever!

ashkanfarahani
Автор

This vid saved me from forgetting to setup git ignore and leaking my tokens. Thank you Corey!

au_solutions
Автор

Super simle and straight to the point. Saved me on a homework assignment for sure!

tysibley
Автор

couple of things which say, why this channel is the best for python on yt

1) he knows exactly what he is doing
2) he talks specifically what is needed for the viewer
3) The fluency ..( It's not about his first language being English. I have seen videos, people struggling a lot to explain)

Thank u for being there Corey. U are Awesome *** This is to request for the Data Structure and Algorithms series u should start. Plz

karthikmishra
Автор

Corey, you gonna go to heaven, thank you so much, you have no idea how much i've been struggling with this .

fouezdesign
Автор

niiice. so simple and easy to follow.

my task got marked down because I made the newbie mistake of not hiding the django-project 'SECRET_KEY'.

hope this correction meets their requirements.

el-jay_
Автор

I have been searching for a solution to securely store keys .. this method helps me.. thank you 👍

devjyotisinha