Skip to main content

Convert cryptographic keys to human-readable phrases, or generate random-yet-memorable passphrases

Project description

PyPI status Build status Documentation Status Updates

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.

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.

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

niceware-0.2.1.tar.gz (213.0 kB view details)

Uploaded Source

Built Distribution

niceware-0.2.1-py2.py3-none-any.whl (204.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file niceware-0.2.1.tar.gz.

File metadata

  • Download URL: niceware-0.2.1.tar.gz
  • Upload date:
  • Size: 213.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for niceware-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cf2dc0e1567d36d067c61b32fed0f1b9c4534ed511f9eeead4ba548d03b5c9eb
MD5 c842af3b17cd339c964de3f8bd40934a
BLAKE2b-256 0170b04fda688fd3379862d5001a8a9fa74cd2345caca6ba929ec47821656a45

See more details on using hashes here.

File details

Details for the file niceware-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for niceware-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0f8b192f2a1e800e068474f6e208be9c7e2857664b33a96f4045340de4e5c69c
MD5 a414b20d3e1eb654d37a7ed6981fc521
BLAKE2b-256 f7b5e37eccab01917bb7cacc9e32dff72c38038ba74ba5ad2c04fca26c69c0fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page