Convert cryptographic keys to human-readable phrases, or generate random-yet-memorable passphrases
Project description
A Python port of Niceware, for generating random-yet-memorable passwords. 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.
Free software: MIT license
Documentation: https://python-niceware.readthedocs.io.
Usage
To insall
$ pip install niceware
To generate an 8-byte passphrase
>>> import niceware
>>> niceware.generate_passphrase(8)
['deathtrap', 'stegosaur', 'nilled', 'nonscheduled']
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.
History
0.1.1 (2017-03-12)
README fixes, no code changes
0.1.0 (2017-03-11)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file niceware-0.1.1.tar.gz
.
File metadata
- Download URL: niceware-0.1.1.tar.gz
- Upload date:
- Size: 211.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b742381b5defb30f7e5cc604507e33273bdf2928b0aa97c5c16e483deefd13 |
|
MD5 | 8787969741873c564adb4559adb612b3 |
|
BLAKE2b-256 | 84cf642254374dabfc050ec1c63ed1bc28fe0fb4d04d92c6e0f6c10f326a753c |
File details
Details for the file niceware-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: niceware-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 202.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e097e479d8755e73d5f13224d383fbea953af3e216f6cd8fa2509a186f80274 |
|
MD5 | 018e73d709e37bd5fac9ef7ab76835a2 |
|
BLAKE2b-256 | d01ab0d630156caa20135494561903f12183e089998313ee2f6352054bdd28a8 |