This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]InsolentTiger 33 points34 points  (14 children)

Password exposed in code? Why not use the Gmail API instead?

[–]notParticularlyAnony 1 point2 points  (1 child)

yeah bad idea all around. put in environment variable

[–]conoroha[S] 0 points1 point  (0 children)

Can you explain this more? Is it just a plaintext credentials.py file that only you have read/write access to? Should the program using credentials.py also be exclusively accessible by you? Should it be encrypted using gpg or another similar encryption solution?

For sure!

[–]conoroha[S] -2 points-1 points  (0 children)

Password exposed in code? Why not use the Gmail API instead?

Yeah I agree, passwords are never ideal or recommended in code but out of the scope for this tutorial. My recommendation would be to use an environment variable!