How rudra8984/pii-protection works
Main Components
a) Client Layer:
• Web Interface (HTML/CSS/JavaScript)
• User Portal (login, signup, image upload)
• Manager Portal (data management interface)
b) Application Layer:
• Django Web Server
• Authentication System
• OCR Processing Module (Tesseract)
• Encryption Module (AES)
c) Data Layer:
• MySQL Database
• Blob Storage (for encrypted documents)
User Authentication Flow
• Login/Signup endpoints
• Session management
• Access control
Image Processing Flow
• Image upload
• OCR processing
• PII detection
• Encryption
• Storage
Manager Access Flow
• Manager authentication
• Data retrieval
• Decryption process
Specific Implementation Details
• pii/views.py - Controller logic
• pii/models.py - Data models
• pii/ocrencrypt.py - OCR and encryption services
• pii/imageshow.py - Image handling
• pii/useridshow.py - User management
[Client Layer]
• ↓↑
[Web Server (Django)]
• ↓↑
[Application Services]
• Auth Service
• OCR Service
• Encryption Service
• Image Processing Service
• ↓↑
[Data Layer]
• MySQL DB
• Blob Storage
Important Elements to Emphasize
• Security boundaries
• Data flow directions
• Encryption points
• Access control checkpoints
• Service interactions