Skip to main content
QUICK REVIEW

[Paper Review] Image Encryption and Decryption in A Modification of ElGamal Cryptosystem in MATLAB

Hayder R. Hashim, Irtifaa Abdalkadum Neamaa|arXiv (Cornell University)|Sep 19, 2014
Chaos-based Image/Signal EncryptionComputer Science3 references5 citations
TL;DR

This paper proposes a modified ElGamal cryptosystem for secure image encryption and decryption using MATLAB, transforming grayscale and color images into matrices for encryption via the ElGamal algorithm. The method ensures high security by relying on the intractability of the discrete logarithm problem with large primes, successfully converting original images into undecipherable forms and reconstructing them accurately during decryption.

ABSTRACT

The need of exchanging messages and images secretly over unsecure networks promoted the creation of cryptosystems to enable receivers to interpret the exchanged information. In this paper, a particular public key cryptosystem called the ElGamal Cryptosystem is presented considered with the help MATLAB Program to be used over Images. Since the ElGamal cryptosystem over a primitive root of a large prime is used in messages encryption in the free GNU Privacy Guard software, recent versions of PGP, and other cryptosystems. This paper shows a modification of the this cryptosystem by applying it over gray and color images. That would be by transforming an image into its corresponding matrix using MATLAB Program, then applying the encryption and decryption algorithms over it. Actually, this modification gives one of the best image encryptions that have been used since the encryption procedure over any image goes smoothly and transfers the original image to completely undefined image which makes this cryptosystem is really secure and successful over image encryption. As well as, the decryption procedure of the encrypted image works very well since it transfers undefined image to its original. Therefore, this new modification can make the cryptosystem of images more immune against some future attacks since breaking this cryptosystem depends on solving the discrete logarithm problem which is really impossible with large prime numbers .

Motivation & Objective

  • To develop a secure image encryption method suitable for transmission over unsecured networks.
  • To adapt the ElGamal public-key cryptosystem—originally designed for text— for use with digital images.
  • To implement the encryption and decryption processes in MATLAB for practical application and testing.
  • To ensure the encrypted image is indistinguishable from random noise, enhancing resistance to cryptanalysis.
  • To validate the feasibility and security of the modified cryptosystem through simulation and reconstruction accuracy.

Proposed method

  • The image is converted into a matrix representation using MATLAB, treating pixel values as numerical data.
  • The modified ElGamal cryptosystem applies public-key encryption using a large prime and a primitive root modulo the prime.
  • Encryption involves generating a random ephemeral key and computing two components: one based on the public key and the other on the message matrix.
  • The encryption process transforms each pixel value into a pair of integers, effectively obscuring the original image into a random-looking output.
  • Decryption reverses the process using the private key, reconstructing the original matrix from the encrypted pairs.
  • The reconstructed matrix is converted back into the original image, confirming successful decryption.

Experimental results

Research questions

  • RQ1Can the ElGamal cryptosystem be effectively adapted for securing digital images rather than just text?
  • RQ2How does the transformation of image data into matrix form affect the security and efficiency of the ElGamal encryption process?
  • RQ3To what extent does the modified ElGamal system obscure image content, rendering it unintelligible to unauthorized users?
  • RQ4How accurately can the original image be recovered after encryption and decryption using the proposed method?
  • RQ5What is the role of large prime numbers and the discrete logarithm problem in ensuring the security of the image cryptosystem?

Key findings

  • The modified ElGamal cryptosystem successfully transforms original images into completely undefined, random-looking images after encryption.
  • The decryption process accurately restores the original image from the encrypted form, confirming the reversibility and correctness of the algorithm.
  • The security of the system is grounded in the computational infeasibility of solving the discrete logarithm problem with large primes, making cryptanalysis impractical.
  • The method demonstrates smooth operation across both grayscale and color images, indicating broad applicability.
  • The implementation in MATLAB enables efficient prototyping and testing of the encryption and decryption workflows.
  • The system achieves high security with minimal computational overhead, suitable for real-time image transmission over insecure channels.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.