Skip to main content

``papass`` is a simple library to generate passphrases.

Project description

papass

PyPI Documentation Status CI

This is a work in progress

papass generates passphrases following the diceware approach as proposed by Arnold G. Reinhold.

Quickstart

Assuming you have a wordlist file wordlist.txt you can run the following command to generate a random list of four words:

$ papass -c 4 -w wordlist.txt
Phrase: grimy street acetone overcast
Entropy: 51.6993

By default this uses the system's most secure random number generator. To use physical dice add -r dice. See papass.readthedocs.io for the full documentation.

Development

Create a virtual environment (e.g. via python -m venv or mamba/micromamba). Install (development) dependencies and papass in editable mode:

$ pip install -r requirements.txt -e .

Run unit tests via

$ pytest

Formatting and linting is done via ruff.

$ ruff format
$ ruff check --fix

To build the docs install e.g. make and do

$ pip install -r docs/requirements.txt
$ make -C docs/ html

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

papass-0.0.3.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

papass-0.0.3-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file papass-0.0.3.tar.gz.

File metadata

  • Download URL: papass-0.0.3.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for papass-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1f0f3add73c26e9548f7415e9044f780fa9c3fdfb4d98b110dbb4540d8b9fc6b
MD5 2f107aae60e3b238d899d36c919e113b
BLAKE2b-256 a7c975d31e17ea40391e3eb2c1ea8b249bea69b34f73792743c8b242214f7015

See more details on using hashes here.

File details

Details for the file papass-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: papass-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for papass-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3d8f902584fbd758d159326df4d0f56e86b381dad861cc0d13f999a053788740
MD5 0865c3ce1b4a7efd9aaa7e2cb270a9a5
BLAKE2b-256 476d3fcb4876aad8fff83d7a4015d2f60808d40eee90250709590676457ab649

See more details on using hashes here.

Supported by

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