Jurnal Teknik Informatika (JUTIF)
Vol. 7 No. 3 (2026): JUTIF Volume 7, Number 3, June 2026

Peningkatkan Keamanan ElGamal Menggunakan CNN dan Rolling Hash untuk Generasi Kunci dalam Enkripsi Gambar

Achmad Fauzi (Doctoral Program, School of Engineering Science, Universitas Syiah Kuala, Banda Aceh, Indonesia)
Teuku Yuliar Arif (Department of Electrical and Computer Engineering, Universitas Syiah Kuala, Banda Aceh, Indonesia)
Yuwaldi Away (Department of Electrical and Computer Engineering, Universitas Syiah Kuala, Banda Aceh, Indonesia)
Roslidar Roslidar (Department of Electrical and Computer Engineering, Universitas Syiah Kuala, Banda Aceh, Indonesia)



Article Info

Publish Date
15 Jun 2026

Abstract

The large scale exchange of digital images requires security mechanisms that are robust not only at the cryptographic algorithm level but also in the key generation process, which is often the weakest component of the system. In conventional ElGamal schemes, security may degrade due to static entropy sources and predictable key patterns. This study proposes an ElGamal key generation model based on a pipeline of Convolutional Neural Networks (CNNs) and a rolling hash function, utilizing visual image content as an adaptive entropy source. The CNN extracts latent features through a fully connected layer, while the rolling hash enhances diffusion and key sensitivity to minor image variations. The model was evaluated using the CIFAR-10 dataset in PNG, WEBP, and JPG formats. Experimental results show stable key generation times ranging from 0.426 to 0.444 ms, with high entropy values between 7.98 and 7.99 bits, indicating strong randomness and resistance to prediction. Strong diffusion characteristics were also observed (PSNR 5.94 dB, SSIM −0.24, MAE 0.43). During encryption, WEBP achieved the fastest processing time (0.48 ms), followed by PNG (1.01 ms) and JPG (15.39 ms), while PNG demonstrated the highest size efficiency with a reduction of up to 70.6%. Decryption remained highly reliable, with success rates exceeding 97% across all formats. Overall, the results confirm that integrating CNNs and rolling hash significantly enhances ElGamal key generation security without compromising decryption reliability or image quality.

Copyrights © 2026






Journal Info

Abbrev

jurnal

Publisher

Subject

Computer Science & IT

Description

Jurnal Teknik Informatika (JUTIF) is an Indonesian national journal, publishes high-quality research papers in the broad field of Informatics, Information Systems and Computer Science, which encompasses software engineering, information system development, computer systems, computer network, ...