Skip to main content

Strong domain-specific passwords generator

Project description

Author: Olivier Grisel <>
description:Generate rebuildable strong passwords

Oneliner overview:

domain_password == base62(sha1(master_password + domain_key))[:8]


This utility script helps generate a set of rebuildable domain-specific strong passwords out of a single easy to remember master password and domain specific keys such as “login@host”.

The generated passwords are strong since they use 8 characters out of a 62 characters long alphabet (lowercase and uppercase letters + digits) that are not to be found in any dictionary.

You can always re-generate your passwords by taking the base 62 encoding of the sha1 hash of the concatenation of your master password and domain key.


With setuptools:

$ easy_install -U virtualkeyring


Use the interactive command-line tool vkr that should now be in your PATH, and type in you master password and domain key:

$ vkr
master password: mysecret
domain key [e.g. 'login@host']:
your password is: hRnf6udB
please clean your console (ctrl-L) after usage

To generate passwords with length larger that 8 chars, for instance for an ssh key passphrase:

$ vkr -l 20
master password: mysecret
domain key [e.g. 'login@host']: foobar@id_rsa
your password is: ClRsTi3btiFhT1weDq0L
please clean your console (ctrl-L) after usage

To generate passwords for a specific alphabet:

$ vkr -a 42aAuUTt
master password: mysecret
domain key [e.g. 'login@host']:
your password is: AatT2UAa
please clean your console (ctrl-L) after usage


  • 1.3 (2008-06-01): add factorized out password fetching from stdin (thanks to gawel)
  • 1.2 (2008-05-16): add -l and -a parameters
  • 1.1 (2008-02-16) use getpass to read the master password from the keyboard
  • 1.0 (2007-11-10) initial relase

Online version

I plan to run a pylons-based version of the script at (not yet done).

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for virtualkeyring, version 1.3
Filename, size File type Python version Upload date Hashes
Filename, size virtualkeyring-1.3-py2.5.egg (7.5 kB) File type Egg Python version 2.5 Upload date Hashes View
Filename, size virtualkeyring-1.3.tar.gz (17.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page