This is a Flask application demonstrating authentication features with password hashing.
- Clone the project.
git clone https://github.com/CyrilBaah/Password-Hashing.git
cd Password-Hashing
- Create a virtualenv
virtualenv env
source env/bin/activate
- Install the packages
pip install -r requirements.txt
- Start the Server
python3 app.py
Registration
curl -X POST http://127.0.0.1:5000/register -H "Content-Type: application/json" -d '{"username": "john_doe", "password": "password123"}'
Login
curl -X POST http://127.0.0.1:5000/login -H "Content-Type: application/json" -d '{"username": "john_doe", "password": "password123"}'