How to expose user passwords in the most "secure" way in django?
<p>I am working on Django 1.9 project and I have been asked to enable some users to print a page with a list of a set of users and their passwords.
Of course passwords are encrypted and there is no out-of-the-box ways of doing this.
I know this would imply a security breach so my question is kind of contradictory, but is there any logical way of doing this that doesn't imply a huge security breach in the software?</p>

<p>No, there is no logical way of doing this that doesn't imply a huge security breach in the software.  </p>

<p>If the passwords are stored correctly (salted and hashed), then even site admins with unrestricted access on the database can not tell you what the passwords are in plain text.  </p>

<p>You should push back against this unreasonable request.  If you have a working "password reset" functionality, then nobody but the user ever needs to know a user's password.  <strong>If you don't have a reliable "password reset" feature, then try and steer the conversation and development effort in this direction</strong>.  There is rarely any real business need for knowing/printing user passwords, and these kind of feature requests may be coming from non-technical people who have misunderstandings (or no understanding) about the implementation detail of authentication and authorization.  </p>

python django passwords password-encryption