Skip to content

Password generator based on XKCD 936 written in Python using Flask

License

Notifications You must be signed in to change notification settings

capacitator51/flask-password

 
 

Repository files navigation

flask-password

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.

Demo

A demo of Flask Password can be found here.

Screenshots

Screenshot of English default settings

Screenshot of Italian default settings

Screenshot of English with spaces

Usage

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

Installation

  1. Browse to the flask-password project folder.
  2. Create Python Virtual Environment (venv) and activate it.
  3. Install the package requirements by running pip install -r requirements.txt.
  4. Install Gunicorn. An example script of a systemd service script is provided in docs/flask-password.service
  5. Install a web server. An Example script of NGINX proxied to Gunicorn is provided in docs/nginx.conf

Thanks

A special thanks to @haydenryan for the OnePagers-gradient templates used in this project.

About

Password generator based on XKCD 936 written in Python using Flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%