Skip to main content

A simple library to generate passphrases.

Project description

papass

PyPI CI

This is a work in progress

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

Usage

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

$ papass -c 5 -w /path/to/wordlist.txt
Phrase: anthem hamstring transport doorbell circle
Entropy: 64.62406251802891

By default this uses the system's most secure random number generator. To use physical dice add -r dice.

You can download a wordlist designed for passphrases from the EFF. You might need to remove the dice numbers, that is, change a line like this

11114     abide

into

abide

Development

Create a virtual environment and do

$ pip install -r requirements.txt .[dev]

Run unit tests via

$ pytest

Formatting and linting is done via ruff.

$ ruff format
$ ruff check --fix

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.2.tar.gz (14.7 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.2-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for papass-0.0.2.tar.gz
Algorithm Hash digest
SHA256 85f38ec70abd5e35bb98043cb947ce793734a0d06c9e3a000947fc09a1837ba8
MD5 3e9a66e6efc034aca1f46ee78d3348dc
BLAKE2b-256 c3d2f87e3849d7450bd4648f1c808c4b813a67e177c79084311d523b4ddf47d4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for papass-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a82961a949090877e3a6b58fb8cff6df967d16ca31c4c5271f54cefbb060e97d
MD5 9c022e351aee1ff55d51a7971ad66373
BLAKE2b-256 4a840bf35a2014e05a5451f1583583c659d9c10122960a1399d73b1f39989738

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