A simple password generator
Very simply CLI password generator. This has probably been done a trillion times already. However, here's the one I occasionally use.
What it does
Generates a password by invoking
parole and copies it to the clipboard (if
supported on your system).
Install via pypi:
pip install parole --upgrade
Simply install from Github itself via:
pip install "git+ssh://email@example.com/merschformann/parole.git" --upgrade
Get a password with default characteristics via:
Get a password of specific length and alphabet via:
parole --alphabet "a!" --uppercase --digits --length 10
Resulting alphabet of this example is
This is the result of combining the explicitly given symbols 'a' & '!', all
uppercase latin letters [A-Z] and all digits [0-9].
Copy to clipboard
The generator uses
pyperclip for copying the password to the clipboard. The
pyperclip did great work of supporting multiple platforms. However,
if you run into problems, please consult the docs of the package:
On Linux a package to support terminal copy to clipboard is needed. I usually
sudo apt install xsel
I use it for quickly generating a password while on the terminal (potentially
using a custom alphabet). Furthermore, for myself it was a similar effort as
googling a reliable and somewhat cryptographically secure solution. I am no
expert on the latter, but I trust the authors of the
secrets module (see
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size parole-0.0.3.tar.gz (3.4 kB)||File type Source||Python version None||Upload date||Hashes View|
|Filename, size parole-0.0.3-py3-none-any.whl (5.7 kB)||File type Wheel||Python version py3||Upload date||Hashes View|