Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 1.29 KB

README.rst

File metadata and controls

65 lines (39 loc) · 1.29 KB

pypi travis codecov downloads

Mempass

Simple memorizable password generator

See http://xkcd.com/936/

Adapted from https://github.com/jesterpm/bin/blob/master/mkpasswd

pip install mempass

on the command line

$ mempass 4
password: celeriac waggable endoss oxytocia
score: Strong! (4)

in python

>>> from mempass import mkpassword
>>> password = mkpassword(4)
>>> print(password)
celeriac waggable endoss oxytocia

or

>>> from mempass import PasswordGenerator
>>> pwgen = PasswordGenerator(nwords=4)
>>> print(pwgen.password)
celeriac waggable endoss oxytocia

>>> print(pwgen.score)
4

>>> print(pwgen.warning)
""

>>> print(pwgen.suggestions)
""