frankwiles / mkpasswd

A small utility for generating strong passwords

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mkpasswd

Overview

A Python 3.7+ command line utility to generate strong passwords quickly from the commandline.

NOTE: This is provided as is and I do not intend to support this outside of my own use.

Usage

You can run this in a pip environment easily by pip installing it or if you're working on it run pip install -e ..

The easiest way to use it is via Docker, so after getting the code just run:

$ docker build -t mkpasswd .
$ docker run --rm mkpasswd

Options are:

  • -s include symbols in the password
  • -l X generate a password of length X. The default is 16 characters
  • -q just generate the password without any text around it

Setup Shell alias

To make this the most useful you should setup a shell alias in your shell of choice, for bash that would be adding this to your ~./bashrc or ~/.bash_profile:

alias mkpasswd="docker run --rm mkpasswd"

Examples

Default

$ mkpasswd
--- Generating a strong password of length 16 ---
Xw4152W5wJj2YZg2
---

Long

$ mkpasswd -l 24
--- Generating a strong password of length 24 ---
Hy?U>%i/"RzT%Q,lOFuiu2Io
---

Long, No symbols, and Quiet

$ mkpasswd -l 30 -q
963885FzMLDerFdSxUh5QmuYbpx42o

License

BSD Licensed. However, I do not plan to support this. It's just a tool I use and find useful.

Author

Frank Wiles frank@revsys.com

About

A small utility for generating strong passwords

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 87.3%Language:Dockerfile 12.7%