Implementasi algoritma elgamal untuk pengamanan data pada wireless sensor network
DOI:
https://doi.org/10.33795/eltek.v23i1.6910Keywords:
Algoritma ElGamal, Jaringan Sensor Nirkabel, Keamanan DataAbstract
Perkembangan teknologi informasi menimbulkan tantangan keamanan data, terutama pada Wireless Sensor Network (WSN) yang rentan terhadap penyadapan. LoRa (Long Range) sering digunakan dalam WSN, tetapi memiliki kelemahan dalam keamanan komunikasi antar node. Untuk mengatasi hal ini, diperlukan sistem autentikasi yang kuat, seperti manajemen kunci. Algoritma ElGamal dipilih karena keamanannya berbasis logaritma diskret dan fleksibilitasnya dalam pengaturan ukuran kunci. Penelitian ini mengimplementasikan Algoritma ElGamal pada WSN dengan LoRa sebagai media transmisi. Perangkat yang digunakan adalah ESP32 Devkit V1 dan LoRa Ra-2 SX1278 pada node master, serta sensor HC-SR04 dan Flame Sensor pada node slave. Hasil menunjukkan Algoritma ElGamal mencapai ketepatan 100% dalam pengiriman data dengan delay 0,289 detik. Daya tahan baterai mencapai 2 jam 58 menit 38 detik. Pengujian intrusi membuktikan Algoritma ElGamal mampu mengamankan data melalui enkripsi dan dekripsi. Kesimpulannya, implementasi Algoritma ElGamal berhasil menjaga keamanan komunikasi dalam WSN, memastikan keaslian pesan, serta menjaga kinerja perangkat selama proses pengiriman dan penerimaan data.
ABSTRACT
The advancement of information technology presents data security challenges, especially in Wireless Sensor Networks (WSN), which are vulnerable to eavesdropping. LoRa (Long Range) is commonly used in WSN but has weaknesses in securing node communication. To address this, a strong authentication system is required, such as key management. The ElGamal algorithm is chosen for its security based on discrete logarithms and flexibility in key size configuration. This study implements the ElGamal algorithm in a WSN system using LoRa as the transmission medium. Devices used include the ESP32 Devkit V1 and LoRa Ra-2 SX1278 on the master node, along with the HC-SR04 sensor and Flame Sensor on the slave node. Results show that the ElGamal algorithm achieves 100% accuracy in data transmission with a delay of 0.289 seconds. The battery lasts for 2 hours, 58 minutes, and 38 seconds. Intrusion testing proves that the ElGamal algorithm secures data through encryption and decryption. In conclusion, implementing the ElGamal algorithm successfully ensures secure communication in WSN, maintains message authenticity, and sustains device performance during data transmission and reception.
References
Syariful e Risa, “Penerapan Keamanan WSN Berbasis Algoritma RSA 2048 dan SHA-3 pada Pemantauan Suhu,” Jurnal Nasional Teknologi dan Sistem Informasi , vol. 6, nº 3, pp. 150-157, 2020.
Prihadi, Sunu e Abdul, “Feasibility of LoRa for Communication Networks in Water Management Systems at Politeknik Negeri Samarinda,” JTE UNIBA, vol. 6, nº 1, pp. 175-179, 2021.
A. F. Septano, A. Kusyanti e R. A. Siregar, “Implementation of Feige-Fiat-Shamir Identification Scheme for Authentication between Node and Gateway on LoRa Module,” Journal of Information Technology and Computer Science Development, vol. 5, nº 7, pp. 2961-2967, 2021.
J. Thomas, S. Cherian, S. Chandran e V. Pavithran, “Man in the Middle Attack Mitigation in LoRaWAN,” Proceedings of the Fifth International Conference on Inventive Computation Technologies (ICICT-2020), pp. 353-359, 2020.
T. M. Danang, “Elgamal Algorithm In Securing Secret Messages,” Journal of Bandung Institute of Technology, 2009.
F. A. Anshori E E. Aribowo, “Implementasi Algoritma Kriptografi Kunci Publik Elgamal Untuk Proses Enkripsi Dan Dekripsi Guna Pengamanan File Data,” Jurnal Informatika, 2014.
F. Husaini, A. M. H. Pardede e I. Gultom, “Application of Encryption Using the ElGamal Method to Enhance the Security of Text and Image Data,” Journal of Computer and Informatics, vol. 4, nº 1, pp. 67-73, 2022.
M. Nizam, H. Yuana e Z. Wulansari, “ESP32 Microcontroller as a Web-Based Door Monitoring Tool,” Journal of Informatics Engineering Students, vol. 6, nº 2, pp. 767-772, 2022.
A. Rahman e M. S. Nugroho, “ Keamanan Wireless Sensor Network Pendeteksi Kebakaran Hutan Menggunakan Algoritma AES Pada Media Komunikasi LORA,” Seminar Nasional Matematika, Geometri, Statistika, dan Komputas, 2022.
A. N. Fadillah, A. D. Almazazi e M. T. Ir. Morlan Pardede, “Design and Development of Communication Device Between Smartphones via LoRa Multi-Hop Wireless Network,” National Conference on Social and Engineering at Politeknik Negeri Medan, pp. 908-916, 2022.
I. Ramadhana e B. Sujatmiko, “Pengembangan Aplikasi Kamus Bahasa Pemrograman C++ Berbasis Android Untuk Meningkatkan Kompetensi Kognitif Mata Kuliahstruktur Data,” Jurnal IT-EDU, vol. 3, no 1, 2018.
H. D. Cahyadi, Y. Mirza e E. Laila, “Design and Development of a Fire Detection Device Using a Flame Sensor and Smoke Sensor Based on Arduino,” Final Report Journal of Computer Engineering, vol. 2, nº 1, pp. 60-70, 2022.
S. P. Santoso e F. Wijayanto, “Rancang Bangun Akses Pintu Dengan Sensor Suhu Dan Handsanitizer Otomatis Berbasis Arduino,” Jurnal Elektro , vol. 10, no 1, pp. 20-31, 2022.
M. Fadli, D. Suhendri e F. Taufik, “Implementation of Inductive Proximity Sensor in a Metal Waste Sorting System Using the Counter Method Based on Arduino,” Journal of Computer Systems TGD, vol. 2, nº 4, pp. 229-235, 2023.
M. M. Kurniawan, K. Amron e R. A. Siregar, “Analisis Karakteristik Transmisi LoRa pada Wilayah Perkotaan,” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 6, nº 8, pp. 3977-3986, 2022.
F. A. Perdana, “Lithium Battery,” INKUIRI: Journal of Science Education, vol. 9, nº 2, pp. 103-109, 2020.
A. Widyatmoko, S. R. Akbar e R. Primananda, “Implementation of Wireless Sensor Network Using OLSR Protocol on Arduino Pro Mini and NRF24L01,” Journal of Information Technology and Computer Science Development, vol. 2, nº 11, pp. 4750-4759, 2018.
N. Rochmat, R. Isnanto e M. Somantri, “Implementation Of Elgamal Cryptography Algorithm For Message Security,” Scientific Journal of Electrical Engineering, vol. 1, nº 3, 2012.
Z. Arief, P. H. Trisnawan e A. Basuki, “Implementasi Komunikasi Multi-Hop Menggunakan Metode Controlled Flooding Pada Wireless Sensor Network Berbasis LoRa,” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 4, nº 7, pp. 2154-2162, 2020.
I. G. W. Sanjaya, A. Bhawiyuga e R. A. Siregar, “Implementasi Metode Ephemeral Diffie Hellman Over Cose (EDHOC) pada Wireless Sensor Network (WSN) sebagai Mekanisme Autentikasi berbasis Modul Komunikasi LoRa,” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 5, nº 4, pp. 1423-1434, 2021.
S. Reegan e V. Kabila, “Highly Secured Cluster Based WSN Using Novel FCM and Enhanced ECC-ElGamal Encryption in IoT,” Wireless Personal Communications, vol. 118, pp. 1313-1329, 2021.
M. Mohan, M. Kavithadevi e J. P. V, “Improved ElGamal Cryptosystem for Secure Data Transfer in IoT Networks,” Fourth International Conference on I-SMAC, 2020.
A. H. Hamza e S. M. K. Al-Alak, “Evaluation key generator of Multiple Asymmetric methods in Wireless Sensor Network (WSNs),” Journal of Physics, pp. 1-10, 2021.
V. Kumar, S. Ray e D. Sadukhan, “ECC, Enhanced pairing-free identity-based broadcast authentication protocol in WSN using ElGamal,” Journal Security and Privacy, 2022.
Murugheswari, A. Sabantini, L. Jose e Padmapriya, “Effective Data Aggregation in WSN for Enhanced Security and Data Privacy,” Journal of Cryptpgraphy and Security, pp. 1-10, 2023.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 M. Nanak Zakaria, Yoyok Heru Prasetyo Isnomo, Junaedi Adi Prasetyo, Dwinnar Rosyidan

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