About the project.
TRIsecure is a production-grade, embedded electronic voting terminal built for the Raspberry Pi 4 that enforces three-factor authentication before a single vote is ever recorded. Instead of relying on a password or a single ID check, a voter must pass an NFC smart card tap, a live face biometric match, and a one-time session token — in that order — before the ballot screen even appears. Designed for low-resource, offline environments, TRIsecure closes the classic gaps in electronic voting: impersonation, double voting, and silent vote tampering, using hardware-backed identity checks and a cryptographically hash-chained ledger instead of trust.
Features
>NFC card tap, MobileFaceNet live face match (cosine similarity ≥ 0.55), and a 60-second one-time session token, enforced sequentially before the ballot screen appears.
Votes are SHA-256 hash-chained, so altering a single recorded vote breaks every hash that follows it, making silent tampering detectable.
Face embeddings are encrypted with AES-256-GCM using PBKDF2-derived keys and a random salt/IV per record.
Every new enrollment is checked against all existing voters (cosine similarity ≥ 0.68) to block duplicate registrations.
Single-use, 60-second-expiry session tokens paired with per-card failure rate limiting to prevent brute-force and replay attempts.
An append-only, optionally HMAC-signed audit log records every authentication and voting event for post-election verification.
Features
>Tech Stack
/>High-level, general-purpose programming language focused on readability and rapid development.