It will prompt you how many characters your password is. The number can be between 8 and 20 (inclusive)
There are all 26 letters, lower and uppercase, all 10 digits (0-9) and most special characters available for use. Instead of prompting to ask which are available, just made it default with those.
Before executing the commands, make sure that you create a virtual environment. This can be done by running the following command in the root directory of the project.
python3 -m venv venvor if you are on windows
python -m venv venvTo activate the virtual environment, run the following command in the root directory of the project.
source venv/bin/activateor if you are on windows using powershell or git bash
venv\Scripts\activate- Spin up the redis database using docker-compose. This will create a redis database with the default port 6379:6379. This can be accessed at localhost:6379 using datagrip or any other database client.
docker compose up -d- Install the required packages using pip from the root directory
pip install -r requirements.txt- Run the main.py file
python3 src/main.pyor if you are on windows
python src/main.pyYou can leave the redis database running if you want, that way you can access the passwords you've generated. The key value pair is the name of the person you entered and the value is the password it generates.
👤 Parker Martin
- Github: @pmarti9