Enterprise Physical Identity & Visitor Access Management System (VAMS) with Edge AI Vision Checkpoint Terminal and Adversarial Reinforcement Learning Simulator.
GatePass Pro is a physical security management platform combining Enterprise Access Control (VAMS) with an AI Checkpoint Simulation Game.
It transitions conventional, paper-bound security checkpoints into a cryptographic zero-trust perimeter utilizing collision-resistant HMAC-SHA256 digital tokens, live Edge AI optical recognition HUDs, IoT turnstile telemetry webhooks, and an interactive Q-Learning adversarial checkpoint trainer.
graph TD
subgraph Public Portal
A[Visitor Self-Registration] -->|E-Signature & Host Selection| B[Digital NDA Engine]
B -->|Issue Collision-Resistant Pass| C[HMAC-SHA256 Token Generator]
end
subgraph Security Perimeter
C -->|Encrypted QR Payload| D[Edge AI Checkpoint Terminal]
D -->|WebRTC Camera Stream| E[jsQR Optical Engine]
D -->|Facial Landmark Scan| F[Biometric Matcher HUD]
D -->|Vehicle Tag Scan| G[ALPR Plate Recognition]
end
subgraph Hardware & Backend Services
D -->|Verify Signature| H[API: verify-pass.php]
H -->|Constant-Time Check| I[(MariaDB Database)]
J[IoT Gate Barriers / RFID] -->|Status Webhook| K[API: turnstile-webhook.php]
K --> I
L[Temporal Background Daemon] -->|Scan Expired Visitors| M[API: overstay-engine.php]
M -->|Escalate Threat Level| N[Alert Posture Engine]
end
subgraph Adversarial Game Engine
O[Gatekeeper AI Sim] -->|LLM Procedural Agents| P[Forensic Tests: UV/Bio/ALPR/HMAC]
P -->|Accuracy Telemetry| Q[Q-Learning Difficulty Agent]
Q -->|Dynamic Reward Balancing| R[Global Leaderboard API]
end
- HMAC-SHA256 Digital Sealing: Passes are cryptographically signed over
(pass_number, idcardno, todate, category)using an enterprise secret key. - Tamper Proofing: Modifying expiration dates, altering categories, or swapping badges invalidates the cryptographic hash instantly via
hash_equals(). - High-Density Encrypted QR: Embeds full security clearance metadata, visitor identity, host approval, and digital hash into a scannable token.
- In-Browser WebRTC Optical Scanner: Scans QR codes from physical paper passes or mobile screens at sub-100ms latency.
- Biometric Facial Recognition HUD: Real-time facial bounding box detector, feature extractor animation, and confidence percentage matching.
- ALPR (Automated License Plate Recognition): Optical vehicle plate verification against travel manifests.
- Rapid Operator Dispatch: Single-click access approval, security escalation, or check-out clearance.
- Turnstile Integration API: Standardized JSON webhooks for hardware barriers, optical flap gates, and solenoid locks (
ENTRY_GATE_01,EXIT_GATE_01,VIP_LOBBY_01). - Enforced State Machine: Prevents double-entry and unauthorized exit (
ApprovedโChecked-InโChecked-Out).
- Temporal Background Scanner: Identifies visitors remaining in secure facilities beyond authorized pass expiration.
- Dynamic Threat Posture: Automatically recalculates site security threat levels (
GREENโAMBERโRED) based on active security alerts and breaches.
- Digital NDA Signature Pad: Touch/stylus/mouse HTML5 canvas signature capture with Base64 PNG encryption.
- Instant Digital Dossier: Visitors generate their own authenticated pass with printable badge layout before physical arrival.
- Adversarial Agent Personas: Procedurally generated diplomatic delegates, undercover spies, and rogue contractors with deceptive dialogue.
-
Forensic Inspection Tools:
- ๐ฆ UV Lamp: Exposes hidden watermarks or missing fluorescent seals.
- ๐งฌ Biometric Sensor: Cross-references retina and face data against registry records.
- ๐ Vehicle Plate Matcher: Flags fake or unlisted license plates.
- ๐ HMAC Cryptographic Verifier: Mathematically validates digital signatures.
-
Q-Learning RL Difficulty Controller:
- Real-time Reinforcement Learning algorithm (
$Q(s, a) \leftarrow Q(s, a) + \alpha [R + \gamma \max Q(s', a') - Q(s, a)]$ ) that dynamically scales adversary deception based on player accuracy. - Live Q-Table Telemetry HUD displaying state-action values.
- Real-time Reinforcement Learning algorithm (
| Endpoint | Method | Description |
|---|---|---|
/api/verify-pass.php |
POST |
Validates HMAC signature, clearance level, and pass validity. |
/api/checkpoint-action.php |
POST |
Records operator action (CHECKIN, CHECKOUT, FLAGGED, TURNSTILE_ENTRY). |
/api/turnstile-webhook.php |
POST |
Hardware turnstile webhook to unlock barriers or trigger lockouts. |
/api/overstay-engine.php |
GET/POST |
Scans active visitors, flags overstay anomalies, and returns telemetry. |
/api/telemetry.php |
GET |
Live dashboard metrics feed (active visitors, alerts, threat level). |
/api/leaderboard.php |
GET/POST |
Retrieves and submits Gatekeeper Simulator high scores. |
- Backend: PHP (Object-Oriented & Procedural Architecture)
- Database: MariaDB / MySQL
- Frontend: Vanilla JavaScript (ES6+), HTML5 Canvas, Modern CSS Glassmorphism
- Libraries / Protocols:
jsQR.jsโ Client-side camera QR barcode processingqrcode.jsโ Client-side cryptographic QR generationFontAwesome 6&Google Fonts(Poppins, Orbitron, Share Tech Mono)
- XAMPP (Apache 2.4+ and MariaDB 10.4+)
- PHP 7.4 or PHP 8.x
-
Clone the Repository
git clone https://github.com/<your-username>/gatepass-pro.git
-
Move into your local web root
# Move into XAMPP htdocs mv gatepass-pro C:/xampp/htdocs/getpass -
Database Setup
- Start Apache and MySQL via XAMPP Control Panel.
- Open
http://localhost/phpmyadmin/. - Create a new database named
getpassdb. - Import the file:
c:/xampp/htdocs/getpass/database/getpassdb.sql
- Alternatively, navigate to:
to auto-execute schema migrations and seed pre-configured records.
http://localhost/getpass/database/migrate.php
-
Verify Database Configuration
- Inspect
db.php:define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', ''); define('DB_NAME', 'getpassdb');
- Inspect
-
Launch the System
- Admin Command Center: http://localhost/getpass/index.php
- Self-Service Pre-Registration: http://localhost/getpass/self-register.php
- AI Checkpoint Terminal: http://localhost/getpass/checkpoint-terminal.php
- Gatekeeper Simulator: http://localhost/getpass/gatekeeper-sim.php
- Username:
admin - Password:
admin
- Pass
#918237465โ Dr. Vikramaditya Rao
(Clearance: Secret โข ALPR:DL-08-AX-9942โข Valid HMAC signature) - Pass
#845920138โ Elena Rostova
(Clearance: VIP Delegate โข ALPR:DL-04-CX-8192โข Valid HMAC signature) - Pass
#682109789โ Ram Kumar
(Flagged / Overstay Anomaly โข Expired pass to demonstrate temporal alarm)
This project is open-source and available under the MIT License.