HOW TO STORE PASSWORDS AND KEYS | Python

HOW TO STORE PASSWORDS AND KEYS | Python

Andrey Ivanov | Python

3 года назад

12,622 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@icedsolid
@icedsolid - 05.09.2023 05:07

Heads up for anyone with the "FileNotFoundError: [Errno 2] No such file or directory:" - the file has to be in python's current working directory, which can be found using
print(os.getcwd()) < Once found put your .env file in that location. Alternatively you can specify the file path, but you're exposing where the file is contained:
file_path = '/full/path/to/.test'
with open(file_path, 'r') as file:
line = file.readline()
print(line)

Ответить
@TheKuruamparambatta
@TheKuruamparambatta - 18.05.2023 22:33

Thank you... Simple and crisp!

Ответить
@MACCBI123
@MACCBI123 - 23.04.2023 11:34

But still you save a STRING of your password..

Ответить
@pkdomo
@pkdomo - 17.03.2023 21:51

Beautiful way of teaching. you completed step by step, repeating the mistakes & correcting those so that everyone can understand the reasons behind what u r doing.

Ответить
@AlexeyZubkov
@AlexeyZubkov - 26.02.2023 19:11

Can we access macOS's keychain using python?
p.s. from security standpoint isn't that easer for hacker to get creds from env variables rather than keychain?

Ответить
@wakarusan1
@wakarusan1 - 12.10.2022 22:14

could use yaml and just load from a .gitignored pw file

Ответить
@user-hc2sm9rd1e
@user-hc2sm9rd1e - 18.09.2022 08:36

The way you explained it it very clear. very good! kudos! but still hiding your plain text keys in .env is insecure and big no for secure coding practice :)

Ответить
@christophermunoz3718
@christophermunoz3718 - 25.03.2022 03:30

Very informative. Thank you!

Ответить
@BlinkVirus
@BlinkVirus - 08.11.2021 16:16

I love this method of teaching! You go through different mistakes that I would make and talk through how to correct it. Good job!

Ответить
@frankepollo
@frankepollo - 01.04.2021 04:33

Are you familiar with a method to encrypt your .env file? I don't like storing any password as plaintext. Have you ever integrated a password manager?

Ответить
@evilishant9336
@evilishant9336 - 06.03.2021 22:50

эй , ты же русский) давай ка по русскому)

Ответить
@xeron9900
@xeron9900 - 27.02.2021 16:12

interesting





what?

Ответить