Journal of Zhejiang University SCIENCE A

, Volume 7, Issue 12, pp 2022-2030

First online:

How to repair the Hill cipher

  • Ismail I. A. Affiliated withFaculty of Computers and Information, Zagazig University
  • , Amin Mohammed Affiliated withComputer Science Department, Faculty of Science, Menoufiya University
  • , Diab Hossam Affiliated withComputer Science Department, Faculty of Science, Menoufiya University

Rent the article at a discount

Rent now

* Final gross prices may vary according to local VAT.

Get Access


The Hill cipher algorithm is one of the symmetric key algorithms that have several advantages in data encryption. However, a main drawback of this algorithm is that it encrypts identical plaintext blocks to identical ciphertext blocks and cannot encrypt images that contain large areas of a single color. Thus, it does not hide all features of the image which reveals patterns in the plaintext. Moreover, it can be easily broken with a known plaintext attack revealing weak security. This paper presents a variant of the Hill cipher that overcomes these disadvantages. The proposed technique adjusts the encryption key to form a different key for each block encryption. Visually and computationally, experimental results demonstrate that the proposed variant yields higher security and significantly superior encryption quality compared to the original one.

Key words

Hill cipher Image encryption Modified Hill cipher Quality of encryption

CLC number