Skip to main content

Niceware for Python

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.

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)

Source distribution for niceware 0.2.1
File Size Uploaded Provenance
niceware-0.2.1.tar.gz 213.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for niceware 0.2.1
File Interpreter ABI Platform
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

Security for niceware 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page