VirtualZero / rpg

RPG is a Flask web application used to create strong, secure passwords. RPG leverages the Python secrets module to generate cryptographically strong, random strings suitable for passwords, user authentication, and security tokens. Check out the app in action: https://rpg.virtualzero.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RPG (Random Password Generator)

Powered by Virtualzero

RPG is a Flask web application used to create strong, secure passwords. RPG leverages the Python secrets module to generate cryptographically strong, random strings suitable for passwords, user authentication, and security tokens.

Installation

Clone the repository:

git clone https://github.com/VirtualZero/rpg.git

Environment

Install Miniconda

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh

Create Environment

conda create --name 'rpg' python=3.7

Activate Environment

source activate rpg

Install Dependencies

cd rpg && pip install -r requirements.txt

Execution

It is bad practice to store passwords in applications. For this reason, sensitive information like account passwords, secret keys, and API keys are stored in environment variables. For simplicity, use the included bash script, env.sh, to create the environment variables before executing the application. With the 'rpg' virtual environment activated, update env.sh with a secure password and execute the following command:

chmod +x env.sh && . env.sh

To run RPG on your local machine, make sure the 'rpg' virtual environment is activated and that you are in the root rpg directory. Enter the following command to start the app:

python run.py

Then, open a browser and go to the following URL:

http://127.0.0.1:5000

To use RPG in a production environment, it is recommended to deploy the app using Gunicorn and Nginx. An example Nginx host file is included, as well as an example systemd service file.

About

RPG is a Flask web application used to create strong, secure passwords. RPG leverages the Python secrets module to generate cryptographically strong, random strings suitable for passwords, user authentication, and security tokens. Check out the app in action: https://rpg.virtualzero.tech

License:GNU General Public License v3.0


Languages

Language:HTML 74.2%Language:JavaScript 12.8%Language:Python 12.7%Language:Shell 0.2%