Implementation of the Advanced Encryption Standard (AES) Algorithm on Access Code QR Codes in a Smart Door System
DOI:
https://doi.org/10.69616/mcs.v2i2.258Keywords:
AES-256-CBC, QR Code, Encryption, Delay, ThroughputAbstract
This research aims to design a smart door system based on QR codes with increased security using the AES-256-CBC algorithm. With AES-256-CBC encryption, the access code data sent from the device to the server is no longer in plaintext form, making it more secure from Man-in-the-Middle (MitM) attacks such as sniffing. The system utilizes ESP32-CAM to read QR codes and NodeMCU ESP32 to encrypt access data using a key hashed with SHA-256 and a 16-byte IV before being sent to the server for verification. Performance testing shows that the average delay increased from 66.4 ms to 67.46 ms after AES implementation, with a maximum value of 82 ms which is still in accordance with the TIPHON standard. On the throughput side, without AES the average is only 5.23 kbps due to shorter data, while with AES it increases to 7.30 kbps with a peak of 8 kbps due to the longer ciphertext size. The response time test recorded an average of 3830.76 ms and a maximum of 6086 ms, spanning the process from sending the code to opening the solenoid. Despite variations due to internet connection quality, delay spikes do not significantly impact system performance, indicating that the system remains secure and stable for IoT-based access control.
References
M. R. Abdahu, U. Ristian, and H. Hasfani, “Implementasi Smart Helmet Cabinet pada Penyimpanan Helm Berbasis Mobile QR Code,” J. Inform. J. Pengemb. IT, vol. 9, no. 1, pp. 78–85, 2024, https://doi.org/10.30591/jpit.v9i1.6593.
A. Salam and S. B. Bhaskoro, “Sistem Keamanan Cerdas pada Kunci Pintu Otomatis menggunakan Kode QR,” Cybernatics, vol. 5, no. 01, pp. 1–11, 2021, https://doi.org/10.29406/cbn.v5i01.2307.
A. P. Muthoharum, B. Santoso, and L. Sunardi, “RANCANG BANGUN SMART SECURITY SYSTEM UNTUK KEAMANAN RUANG SERVER BERBASIS QR CODE PADA RUANG SERVER UNIVERSITAS BINA INSAN,” ESCAF, pp. 1228–1235, 2023.
M. P. HAKIM, U. RISTIAN, and S. SUHARDI, “Sistem Pintu Cerdas dengan QR Code berbasis Internet of Things sebagai Penerapan Edge Computing,” ELKOMIKA J. Tek. Energi Elektr. Tek. Telekomun. Tek. Elektron., vol. 11, no. 4, p. 907, 2023, https://doi.org/10.26760/elkomika.v11i4.907.
F. Ferdiansyah, “Penggunaan Qr Code Berbasis Kriptografi Advanced Encryption Standard (AES) untuk Administrasi Rekam Medis,” J. Syntax Admiration, vol. 2, no. 10, pp. 1870–1884, 2021, https://doi.org/10.46799/jsa.v2i10.325.
F. Bibiola, T. U. Kalsum, and H. Alamsyah, “Penerapan Algoritma Advance Encryption Standard (AES) Untuk Pengamanan File Pada Aplikasi Berbasis WEB,” J. Surya Energy, vol. 8, no. 1, pp. 35–51, 2023, https://doi.org/10.32502/jse.v8i1.6461.
W. Adhiwibowo, A. M. Hirzan, and M. S. Suprayogi, “Peningkatan Keamanan Data End-To-End Smart Door Menggunakan Advanced Encryption Standard,” J. ELTIKOM, vol. 6, no. 2, pp. 186–194, 2022, https://doi.org/10.31961/eltikom.v6i2.574.
A. H. Nasrullah, A. M. Fajar, M. A. Taufiq, N. Rahmat, and F. Adiba, “Evaluation Of Fuzzy C-Means Method For District Clustering,” Media Comput. Sci., vol. 1, no. 2, pp. 117–128, 2024, https://doi.org/10.69616/mcs.v1i2.203.
E. Suwanty, R. Hidayati, and K. Sari, “Implementation of Door Lock System Using Keyword and RFID,” J. Media Inf. Teknol., vol. 2, no. 2, pp. 53–64, 2025, https://doi.org/10.69616/mit.v2i2.240.
M. D. Asrofa, S. Bahri, and K. Kasliono, “One-Time Pad Cryptography for Secure Data Transmission in IoT Smart Door Using QR Code,” J. Media Inf. Teknol., vol. 2, no. 2, pp. 133–148, 2025, https://doi.org/10.69616/mit.v2i2.248.
M. R. Nur, A. Ranggareksa, F. Adiba, and A. Husna, “Clustering The Use Of Puskesmas Soreang Medicine Using The Fuzzy C-Means Method,” J. Heal. Innov. Technol., vol. 1, no. 1, pp. 1–8, 2025, https://doi.org/10.69616/johati.v1i1.226.
I. Suharjo, “Prototype alat kendali otomatis penjemur pakaian menggunakan NodeMCU ESP32 dan Telegram Bot berbasis Internet of Things (IoT),” J. Inf. Syst. Artif. Intell., vol. 1, no. 1, pp. 17–24, 2020.
J. Handoyo and Y. M. Subakti, “Keamanan Dokumen Menggunakan Algoritma Advanced Encryption Standard (Aes),” J. SITECH Sist. Inf. dan Teknol, vol. 3, no. 2, pp. 143–152, 2020.
D. Hulu, B. Nadeak, and S. Aripin, “Implementasi Algoritma AES (Advanced Encryption Standard) Untuk Keamanan File Hasil Radiologi di RSU Imelda Medan,” KOMIK (Konferensi, vol. 4, pp. 78–86, 2020.
A. Nugrahantoro, A. Fadlil, and I. Riadi, “Optimasi Keamanan Informasi Menggunakan Algoritma Advanced Encryption Standard (AES) Mode Chiper Block Chaining (CBC),” J. Ilm. FIFO, vol. 12, no. 1, p. 12, 2020, https://doi.org/10.22441/fifo.2020.v12i1.002.
Published
Issue
Section
Copyright (c) 2025 Ihsan Azhar Rhamadan, Kasliono, Syamsul Bahri

This work is licensed under a Creative Commons Attribution 4.0 International License.











