Flask Password is a password generator based on the XKCD 936 comic.
Flask Password is written in Python3 and runs as a web application atop the Flask framework. For a
complete list of requirements, see requirements.txt
. The code is available on GitHub.
A demo of Flask Password can be found here.
Flask Password has two ways of setting optional variables, through GET and POST HTTP methods. If POST method is used, cookies are created for persistence. However, GET method will always override cookie-stored values. The following variables are defined.
Key | Value | Cookie Name | Description |
---|---|---|---|
debug | 1 | fp_debug | Shows key/value pairs in footer |
language | en, it | fp_language | Selects word dictionary language |
spaces | 0, 1 | fp_spaces | Include spaces in password |
symbol | 0, 1 | fp_symbol | Include symbol in password |
uppercase | 0, 1 | fp_uppercase | Include uppercase in password |
- Browse to the flask-password project folder.
- Create Python Virtual Environment (venv) and activate it.
- Install the package requirements by running
pip install -r requirements.txt
. - Install Gunicorn. An example script of a systemd service script is provided in docs/flask-password.service
- Install a web server. An Example script of NGINX proxied to Gunicorn is provided in docs/nginx.conf
A special thanks to @haydenryan for the OnePagers-gradient templates used in this project.