Random password and passphrase generator
Project description
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
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
File details
Details for the file randpw-0.4.0.tar.gz
.
File metadata
- Download URL: randpw-0.4.0.tar.gz
- Upload date:
- Size: 54.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 966b67e6a7b722496a6ffbeecb7efd1aada160529f766db15881284947225c1d |
|
MD5 | 021180dc8f03456a3eefaab2830ce9b0 |
|
BLAKE2b-256 | 90ca74fcf816aadb2018c586bb947f83ef738add55e15cfa63a7d7052ab3649c |