This repository demonstrates secure coding practices by comparing an insecure vs secure implementation of a Python login system using SQLite.
Created: 2025-08-28
Secure-Coding-Review-Task3/
ββ insecure_code/
β ββ insecure_login.py
β ββ demo_attack.py
ββ secure_code/
β ββ secure_login.py
β ββ db.py
β ββ utils.py
ββ docs/
β ββ REPORT.md
ββ tests/
β ββ test_secure_login.py
ββ .gitignore
ββ README.md
- Clone & enter the project:
git clone https://github.com/your-username/Secure-Coding-Review-Task3.git
cd Secure-Coding-Review-Task3- Run the insecure example:
python insecure_code/insecure_login.py
python insecure_code/demo_attack.py- Run the secure example:
python secure_code/secure_login.py --init
python secure_code/secure_login.py --login --username admin --password admin123!- Run tests:
python -m unittest tests/test_secure_login.py -v