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']

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.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.1.0.tar.gz (211.4 kB view details)

Uploaded Source

Built Distribution

niceware-0.1.0-py2.py3-none-any.whl (202.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for niceware-0.1.0.tar.gz
Algorithm Hash digest
SHA256 743699937df96313e91b09489c80280458aab192270af9923a3ea633d5eab3b7
MD5 a5fdb8cff638ce1223d6ef31c6368dad
BLAKE2b-256 c999c37c8af0385292bd071279489343ffb03b891506299da844276ce5e352c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for niceware-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6b065dd68c5b18443b1b59e11c2e7c78b891bcac504b301df3fbe1a659be1953
MD5 678f5c227c7d2de1fcac76c4fe43013d
BLAKE2b-256 64d19f1ef3aa28a5dbcf7d44d3fb580951e3f607a2f617d60c89260d9bc83e37

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