[Tutor] Storing passwords and version control
Steven D'Aprano
steve at pearwood.info
Sun May 27 19:44:52 EDT 2018
On Sun, May 27, 2018 at 09:08:29AM -0700, Pat Martin wrote:
> The process I am currently thinking of using is having a separate file with
> the username and password in it and just having that ignored by source
> control. That of course doesn't solve the problem of the password sitting
> in a file on the system unencrypted. Is there a better or more accepted way
> to do this in python?
The usual way is to use the netrc module.
https://docs.python.org/3/library/netrc.html
--
Steve
More information about the Tutor
mailing list