Skip to main content

Downloads

randpw

Random password and passphrase generator.

Simple password example:

$ randpw
Ex8PfCcIvFeT5GMT

Simple passphrase example:

$ randpw -p
unlit race mandatory kelp kindling carmaker

Show information about the generated password:

$ randpw -v
tshvJXTYPWtAjyy7


Info:
----------------------------------------
- Password Cardinality: 62
- Password Length: 16
- Password Entropy: 95.3 bits
- Password Strength: Strong
- Estimated time to crack using a supercomputer with roughly
one trillion guesses per second: 687 433 358 years

Generate a pt-br passphrase and show information about it:

$ randpw -p -i pt-br -v
namorada demandou manteiga bica suavidade imponente


Info:
----------------------------------------
- Wordlist Size: 7776
- Passphrase Words: 6
- Password Entropy: 77.5 bits
- Password Strength: Strong
- Estimated time to crack using a supercomputer with roughly
one trillion guesses per second: 3 187 years

EFF’s long word list is used for generating the english passphrase.

Brazilian Portuguese passphrase is generated using a pt-br wordlist curated by me using the most frequent spoken words, removing accented and words bigger than 9 and smaller than 4 characters.

Notes

  • Works on Python 2 and Python 3

  • Uses only Python standard library for maximum compatibility

Install

Install using pip:

pip install randpw

Usage

Usage: randpw [options]

random password and passphrase generator

Options:
  --version         show program's version number and exit
  -h, --help        show this help message and exit
  -s SIZE           size of the password (default: 16)
  -n COUNT          number of passwords to generate (default: 1)
  -c CHARS          characters to use: 'letters', 'numbers', 'mixed' or 'full'
                    - uses only letters, only numbers, letters + numbers or
                    letters + numbers + punctuation (default: mixed)
  -l, --lower       lowercase letters (default: disabled)
  -u, --upper       uppercase letters (default: disabled)
  -p, --passphrase  generate passphrase instead (default: disabled)
  -w WORDS          number of passphrase words (default: 6)
  -i IDIOM          idiom of the wordlist: 'en' or 'pt-br' (default: en)
  -v, --verbose     show some information about the generated passwords like
                    entropy, strength and estimated time to crack (default:
                    disabled)

Examples

Random password using only letters:

$ randpw -c letters
LqmTdVhrlflQanzg

32 characters password:

$ randpw -s 32
PPb9Qs3HPYDn3T3zddEeSfAuRVXjTHHa

Generate 3 uppercase letters passwords:

$ randpw -n 3 -u
FUU1VKT2FNHJ9NEX
BHIX2CBDXBPZELTZ
BHKENUKXWMA4XFX0

Lowercase password cointaing letters, numbers and punctuation:

$ randpw -c full -l
nq6g'2/x23v~ykf@

Generate 3 uppercase passphrases with 8 words each:

$ randpw -p -u -n 3 -w 8
CAPTIVE BUFFER PREFIX FREEZABLE ELOQUENT HANDPICK ALARM STAGNANT
PORTFOLIO PAWING SCRUTINY MANIFESTO CAPTIVITY TRAPS STEED IMMORALLY
SHADY YEAST FOOTER EARTHEN SHARPENER APPEASING FOOTPAD SETTLE

Metadata

Release files for randpw 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for randpw 0.4.0
File Size Uploaded Provenance
randpw-0.4.0.tar.gz 54.8 kB Without provenance Details

Release files / randpw-0.4.0.tar.gz

Download URL randpw-0.4.0.tar.gz
Size 54.8 kB
Tags Source
SHA-256 checksum
How to use checksums
966b67e6a7b722496a6ffbeecb7efd1aada160529f766db15881284947225c1d
BLAKE2b-256 checksum
How to use checksums
90ca74fcf816aadb2018c586bb947f83ef738add55e15cfa63a7d7052ab3649c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

Security for randpw 0.4.0

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