Niceware for Python
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']
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.
History
0.2.1 (2017-03-25)
Add example command line usage
0.2.0 (2017-03-25)
Add niceware command to generate passphrase(s)
Add examples to docstrings
Mark Python 3.6 as supported
0.1.1 (2017-03-12)
README fixes, no code changes
0.1.0 (2017-03-11)
First release on PyPI.
Metadata
Release files for niceware 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| niceware-0.2.1.tar.gz | 213.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| niceware-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 417.1 kB
Release files / niceware-0.2.1.tar.gz
| Download URL | niceware-0.2.1.tar.gz |
|---|---|
| Size | 213.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf2dc0e1567d36d067c61b32fed0f1b9c4534ed511f9eeead4ba548d03b5c9eb
|
|
BLAKE2b-256 checksum How to use checksums |
0170b04fda688fd3379862d5001a8a9fa74cd2345caca6ba929ec47821656a45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / niceware-0.2.1-py2.py3-none-any.whl
| Download URL | niceware-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 204.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0f8b192f2a1e800e068474f6e208be9c7e2857664b33a96f4045340de4e5c69c
|
|
BLAKE2b-256 checksum How to use checksums |
f7b5e37eccab01917bb7cacc9e32dff72c38038ba74ba5ad2c04fca26c69c0fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |