[Tutor] How to store and use passwords?

boB Stepp robertvstepp at gmail.com
Tue Nov 18 16:59:56 CET 2014

On Tue, Nov 18, 2014 at 9:47 AM, Alan Gauld <alan.gauld at btinternet.com> wrote:
> You can roll your own password system using the crypt module.
> Get each user to create a password (or give them a default) and
> encrypt it with crypt. Store the result and when they log in
> compare the encrypted password with the stored one.
> It may not have all the security features of the passlib
> solution but its a lot better than nothing and will deter
> most crackers long enough for them to get bored and move on.

I see that the crypt module is available for both python versions I
have access to.

> The downside is that you need to build a password management
> module/workflow/UI into your code to allow changes/resets etc.

Another opportunity for furthering my education!

Thanks, Alan!


More information about the Tutor mailing list