Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.09 KB

File metadata and controls

53 lines (42 loc) · 1.09 KB

🔐 Secure Coding Review – Task 3 (Detailed Repository)

This repository demonstrates secure coding practices by comparing an insecure vs secure implementation of a Python login system using SQLite.

Created: 2025-08-28


📦 Structure

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

🚀 Quick Start

  1. Clone & enter the project:
git clone https://github.com/your-username/Secure-Coding-Review-Task3.git
cd Secure-Coding-Review-Task3
  1. Run the insecure example:
python insecure_code/insecure_login.py
python insecure_code/demo_attack.py
  1. Run the secure example:
python secure_code/secure_login.py --init
python secure_code/secure_login.py --login --username admin --password admin123!
  1. Run tests:
python -m unittest tests/test_secure_login.py -v