Python-based password tracker (or dictionary)

Posted by Arrieta on Stack Overflow See other posts from Stack Overflow or by Arrieta
Published on 2010-06-07T18:22:13Z Indexed on 2010/06/07 19:52 UTC
Read the original article Hit count: 178

Hello:

Where we work we need to remember about 10 long passwords which need to change every so often. I would like to create a utility which can potentially save these passwords in an encrypted file so that we can keep track of them.

I can think of some sort of dictionary passwd = {'host1':'pass1', 'host2':'pass2'}, etc, but I don't know what to do about encryption (absolutely zero experience in the topic).

So, my question is really two questions:

  1. Is there a Linux-based utility which lets you do that?
  2. If you were to program it in Python, how would you go about it?

A perk of approach two, would be for the software to update the ssh public keys after the password has been changed (you know the pain of updating ~15 tokens once you change your password).

As it can be expected, I have zero control over the actual network configuration and the management of scp keys. I can only hope to provide a simple utility to me an my very few coworkers so that, if we need to, we can retrieve a password on demand.

Cheers.

© Stack Overflow or respective owner

Related posts about python

Related posts about best-practices