Python Forum
encrypting PyPi passwords in pypirc
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
encrypting PyPi passwords in pypirc
#1
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?
Reply
#2
You can use passlib for this,
here's a blog on this: http://blog.tecladocode.com/learn-python...d-passlib/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  best way to embed passwords into scripts mikey6785 3 2,185 Aug-31-2022, 08:22 AM
Last Post: DeaD_EyE
  Encrypting Oracle Passwords / Python Library for That? bmccollum 1 2,530 Jun-11-2021, 07:59 PM
Last Post: Larz60+
  Help with passwords program Vasilis 1 1,553 Jan-06-2021, 10:55 AM
Last Post: Larz60+
  I need help using Python to generate usernames and passwords with excel documents Jannejannesson 3 3,949 May-08-2019, 02:30 PM
Last Post: Jannejannesson

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020