Skip to content

Niceware for Python - convert cryptographic keys to human-readable phrases, and back again

License

Notifications You must be signed in to change notification settings

moreati/python-niceware

Repository files navigation

Niceware for Python

PyPI status Build status Documentation Status Updates

Python port of Niceware. Generate random-yet-memorable passphrasese, or convert encryption keys to english phrases and back again.

Each word provides 16 bits of entropy, so a useful password requires at least 3 words.

Because the wordlist is of exactly size 2^16, Niceware is also useful for converting cryptographic keys and other sequences of random bytes into human-readable phrases. With Niceware, a 128-bit key is equivalent to an 8-word phrase.

Usage

To insall

$ pip install niceware

To generate an 8-byte passphrase

>>> import niceware
>>> niceware.generate_passphrase(8)
['deathtrap', 'stegosaur', 'nilled', 'nonscheduled']

or from the command line

$ niceware --words 5
tincturing distasting await trusser treadler

Niceware for Python uses os.urandom for entropy.

Credits

Niceware for Python is a port of Niceware, by yan.

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

Niceware for Python - convert cryptographic keys to human-readable phrases, and back again

Resources

License

Stars

Watchers

Forks

Packages

No packages published