Python Forum

Full Version: encrypting PyPi passwords in pypirc
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I encrypt a password for use in the pypirc file for authentication to my PyPi repository? I understand that I can omit the password and get prompted in my local builds but for CI or automated builds I need to have the password in the file but our security policy won't allow the password to be stored in plain text. Any suggestions?
You can use passlib for this,
here's a blog on this: http://blog.tecladocode.com/learn-python...d-passlib/