Password Tools
Project description
pwdpy
pwdpy is a set of tools to facilitate password handling. It can be used in command line and as a python module.
Installation
pwdpy requires Python 3.x.
pwdpy can be installed with pip:
$ pip install pwdpy
Usage (command line)
pwdpy accepts several arguments configuring its outcome. Overall synopsis is:
$ pwdpy {generate, entropy} [-h] [-l LENGTH] [-q QUANTITY] [-p] [-d] [-le] [-nu] [-nl] [-cf FILE] [-o FILE]
Commands: generate Generates a random password based on the arguments
**entropy** Calculate the entropy of a password
GENERATE Arguments:
-h, --help Display help message
-l, --length LENGTH The length of the password (default: 8)
-q, --quantity QUANTITY Generate QUANTITY passwords. (default: 1)
-p, --punctuation Use punctuation characters (default: False)
-d, --digits Use digits (default: False)
-le, --letters Use letter (default: False)
-nu, --no-upper Don't use upper case letters (default: False)
-nl, --no-lower Don't use lower case letters (default: False)
-cf, --charset-file FILE Charset file will be used instead of the arguments specification
-o FILE, --output FILE The output file will be created with the passwords.
ENTROPY Arguments:
-pwd, --password PASSWORD password that will be tested
Examples
Below are some examples of pwdpy usage.
GENERATE:
One password with letters and digits:
$ pwdpy generate -le -d
MT06aRK1
One password with 12 digits:
$ pwdpy generate -l 12 -d
304751766483
One password with all characters possibility:
$ pwdpy generate -le -d -p
PY>8OH+y
A list containing 3 passwords with all characters possibility:
$ pwdpy generate -q 3 -le -d -p
['Xw]6ua77', 'SfmCrlg)', 'I9):o8Oa']
One password with all characters possibility from the charset file:
$ pwdpy generate -cf ./wordlist.txt
}=W8jb4y
ENTROPY:
Calculing one password entropy:
$ pwdpy entropy -pwd "PY>8OH+y"
52.44
Python module
pwdpy Python module provides one function that is called generate.
| def generate(quantity=1, length=8, punctuation=True, digits=True, letters=True, l_upper=True, l_lower=True, charset=[], charset_file="", **kwargs)
It returns a string with length characters. punctuation, digits and letters arguments specify whether punctuation, digits and letters should be used. l_upper and l_lower specifies letter wich case the letter can be.
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pwdpy-0.3.0.tar.gz.
File metadata
- Download URL: pwdpy-0.3.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08ae05037d69845050bf6d3e5d2fca694ab06b1deb0162f8a20c9c9ec930f81b
|
|
| MD5 |
2cc8c0b4de9b3cc7cea86f4ef67b4817
|
|
| BLAKE2b-256 |
021674eb27d6435320d2f4b8af18a7e91a057e7ddf53866baebb8cad1765bd91
|
File details
Details for the file pwdpy-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pwdpy-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6562039d9d54095977ab1a3770baf1ffff87454e8ec4de55ddfc8096de616489
|
|
| MD5 |
5c41d8aa6bac0e0393382ce868b8bda9
|
|
| BLAKE2b-256 |
10a5da76ec5f46c9dac350fd2f33920de410eb03a2cf5da4da2183684589fb8d
|