Android application for generating and reading encrypted Quick Response code

Main Article Content

Stefano Farroni

Abstract

This document describes a platform called QR Secure, designed to enable the generation, sharing, and reading of Quick Response Codes (hereinafter QR Codes) containing information that must be kept secret. The platform uses modern cryptographic techniques based on AES-256 symmetric
encryption and a backend infrastructure dedicated to securely managing cryptographic keys. The system architecture is composed of three main components:
• a mobile application developed in Delphi;
• a backend built with Python FastAPI;
• a PostgreSQL database for securely storing keys.
The entire process involves generating a random AES-256 (256-bit) key and a 128-bit initialization vector (IV), encrypting the data on the device, storing the keys securely on the server using double encryption with an AES-256 master key, and subsequently authorizing decryption when reading the QR Code. This document illustrates the theoretical principles adopted, the software architecture, the implementation solutions, the complete operational flow with practical examples, and the features offered by the application.
The document is organized by progressively distinguishing objectives and theoretical foundations (Chapter 1), system architecture and technologies used (Chapter 2), application operational flow (Chapter 3), application functionality (Chapter 4), implemented security (Chapter 5), use cases with their critical discussion (Chapter 6), and conclusions and future developments (Chapter 7). The account activation and app installation procedure, which is purely operational in nature, is reported in the appendix.

Article Details

How to Cite

Farroni, S. (2026). Android application for generating and reading encrypted Quick Response code. Rapporti Tecnici INGV, 531, 32 pp. https://doi.org/10.13127/rpt/531