Standard Quick Response (QR) codes offer no built-in safeguards for data confidentiality, authenticity, or resistance to replay attacks. To address these vulnerabilities, this study introduces a secure dynamic QR code framework combining nonce-dependent multi-level scrambling, adaptive matrix traversal, and authenticated encryption via AES-GCM. The system relies on a single-use verification protocol that pairs unique token identifiers with expiration timestamps and atomic server-side state transitions. Testing confirmed the recovery of all 600 payloads and the rejection of every modified authenticated payload among the 450 tested. Both the proposed framework and the stateful AES-GCM baseline blocked duplicate, expired, and revoked tokens, permitting only one successful redemption during concurrent access attempts. While the method adds a 16-byte header overhead, it remains compatible with standard QR readers. These results confirm that stateful verification effectively prevents token reuse, and the scrambling mechanism yields dynamic, reversible data representation without asserting enhanced cryptographic strength.
Copyrights © 2026