• No results found

Non-deterministic Image Encryption Based on Symmetric Cryptosystem

N/A
N/A
Protected

Academic year: 2021

Share "Non-deterministic Image Encryption Based on Symmetric Cryptosystem"

Copied!
8
0
0

Loading.... (view fulltext now)

Full text

(1)

Procedia Computer Science 93 ( 2016 ) 791 – 798

1877-0509 © 2016 The Authors. Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).

Peer-review under responsibility of the Organizing Committee of ICACC 2016 doi: 10.1016/j.procs.2016.07.296

ScienceDirect

6th International Conference On Advances in Computing & Communications, ICACC 2016, 6-8

September 2016, Cochin, India

Non-Deterministic Image Encryption Based on Symmetric

Cryptosystem

B.Sri Gurubaran

*

, N.Sasikala Devi, E.R.S.Subramanian, D.Geophilus

School of computing, SASTRA Unviersity, Thanjavur, India.

Abstract

In this paper, an encryption algorithm for images using a secret key of 128-bits is proposed. To improve the security of the encrypted image, a unique timestamp is used while encryption. Initially, the image is divided into multiple blocks and each block is encrypted separately. And final image is obtained by combining these blocks of data. Simulation results have been given to validate the security features and effectiveness of the proposed system.

Keywords: Non-Deterministics Encyption; Image Encryption; Rasterization; Finite Field

1. Introduction

With rapid advancements in information technology, there is a growing demand for transmission of data between networks safely and securely1. Most of the data transmitted between networks being confidential in nature, it is our utmost priority to secure them to prevent unwanted disclosure and modifications in transit. One of the ways to protect digital data is to employ cryptography.

Cryptography deals with the development of techniques for converting information between intelligible and unintelligible forms2. It deals with the content confidentiality and access control. There are two fundamental properties which every secure encryption method must satisfy3. The first is the confusion property which requires that cipher texts should have random appearance, i.e. uniformly distributed pixel values. The second is the diffusion property which requires that similar keys should produce completely different cipher texts for the same plaintext.

The problem with the existing cryptosystem is that the cipher text can be used to crack down the original text, by brute forcing or some other means. So in this proposed system the concept of semantic security is incorporated. Where in any information revealed cannot be feasibly extracted, i.e., for the same set of plain text and cipher key we will obtain different cipher texts thereby making it impossible to extract the original data without the cipher key.

However, the traditional text encryption algorithms are not preferred for image encryption because, in traditional cryptosystems the size of decrypted text must be equal to the original text size. hence the above concepts are extended onto image files, where in the pixel data of the image is obtained and the encryption process is applied to it thereby generating an entirely new encrypted image which is completely scrambled and looks like random noise. Each time for the same image, different encrypted images will be generated but, all of them will generate the same original image after decryption.

* Corresponding author. Tel.: +91 80560678706.

(2)

2. Related Work

Implementation of grey image encryption with pixel shuffling and grey-level encryption by single chaotic system, by C.K. Huang et.al4 proposed that when the greys of the image provide high contrast, simple encryption may retain the outline of the image. To avoid this pixel shuffling is adopted, but it does not disrupt the spectrum therefore a chaotic system which is highly sensitive to initial values for the shuffling process.

Application of S-box and chaotic map for image encryption, by Iqtadar Hussain et.al5 proposed a method for image encryption based on chaotic skew tent-map and substitution box transformation. In this method confusion and diffusion is performed at the same time, thereby making it stronger against chosen cipher attacks or any such attacks. An image encryption scheme based on rotation matrix bit-level permutation and block diffusion, by Yushu Zhang et.al6 proposed a novel image encryption scheme based on rotation matrix bit-level permutation and block diffusion. Basically, the plain image is divided into an 8x8 pixel blocks, which is then converted into an 8x8x8 binary matrix and permutation is carried out with this three dimensional matrix. And block diffusion is carried out to further change the image characteristics after confusion.

An efficient image encryption algorithm based on S8 S-box transformation and NCA map, by Iqtadar Hussain et.al7 proposed a scheme for image encryption based on S

8 substitution boxes and NCA chaotic sequence. This method can encrypt color images and holds good against many classical attacks.

A novel image encryption based on hash function with only two-round diffusion process, by Benyamin Norouzi et.al8 proposed an algorithm for image encryption using a hash function. Since the key generated is correlated with keystream generated by the hash function and the plain text, high sensitivity and security with only two rounds of diffusion process.

3. Proposed Framework

The framework proposed implements non-deterministic encryption to a symmetric cryptosystem, where instead of using traditional text based encryption algorithm an alternate way for image encryption is suggested. From Fig.1. it is clear that the image file is broken down into blocks of data and processed individually following a Cipher Block Chaining (CBC) encryption method, and to impart non-determinism a unique timestamp is mixed with the first data block and since CBC encryption method is used this brings about a vast change in the consequent blocks (an Avalanche effect is observed).

The proposed system is inferred from Advanced Encryption Standard (AES)9,10, where a plain text and cipher key of equal length is taken, and is converted to a two dimensional matrix and various operation like ShiftRows, SubBytes, MixColumns are performed for a set number of times based on the key length. The SubBytes operation achieves confusion by substituting values of the matrix with corresponding values from Rijndael S-Box. In ShiftRows operation the bytes in each row of the matrix are cyclically shifted by a certain offset. The MixColumns operation along with ShiftRows achieves diffusion, where finite field multiplication is performed between the matrix and Rijndael Galois Field. After performing these operations, the resultant cipher text is obtained.

(3)

Fig.1. Non-Deterministic encryption scheme

3.1.

Encryption process of the proposed system

Step 1: Input image is obtained

Step 2: Raster info is obtained from the image Step 3: Cipher key is obtained in hexadecimal format Step 4: Segment the pixel information into chunks Step 5: Repeat for all chunks

5.1: If it is the first time

5.1.1: the data chunk is mixed with a unique timestamp 5.2: Else

5.2.1: It is mixed with the previous data chunk after performing encryption on it 5.3: The data chunk is converted to a 2-D matrix

5.4: the matrix and the cipher key are mixed 5.5: Repeat the steps ‘n’ times

5.5.1: Perform SubBytes operation all the elements of the matrix 5.5.2: Perform ShiftRows operation on the matrix

5.5.3: If it is not the last round

5.5.3.1: Perform MixColumns operation on the matrix 5.5.4: Perform the KeySchedule operation on the cipher key 5.5.5: the new cipher key is mixed with the matrix 5.6: Revert the matrix back to an array

Step 6: Combine the arrays

(4)

4. Experimental Results

4.1. Histogram Analysis

First experiment is the histogram analysis of the original, encrypted and the decrypted images. In this analysis the image histograms of the respective images are considered to show that the original and encrypted images vary vastly and the original and decrypted images are one and the same.

a b

Fig. 2. (a) Original Image (Lena); (b) Image histogram of (a)

Fig.2(b) Plots Tonal Variations Vs Number of Pixels per Tone for red, green and blue components of the image.

a b

Fig. 3. (a) Encrypted Image; (b) Image histogram of (a)

It is evident from both the histogram and image that it is totally random and has no relation with the original image.

a b

Fig. 4. (a) Decrypted Image; (b) Image histogram of (a)

(5)

4.2. Comparison between compressed and uncompressed image

In this experiment the same image and same cipher key are considered, but with different image formats say BMP and JPG. Then the correlation coefficient and mean square error (MSE) for the set of images are found. This is to prove that the file format plays a role in the encryption process of the image.

a b

Fig. 5. (a) Original Image (BMP, JPG); (b) Image histogram of (a)

Fig.5(a) and 5(b) shows the original image and its corresponding histograms for both BMP and JPG file formats they turn out to be the same.

a b

Fig. 6. (a) Encrypted Image (BMP); (b) Image histogram of (a)

a b

Fig. 7. (a) Encrypted Image (JPG); (b) Image histogram of (a)

Though the difference may not be evident in the images, the variation between the encrypted images can clearly be seen in the histograms.

(6)

Table 1. Correlation Coefficient, MSE and Avg. execution times of the images in BMP and JPG file formats

To further support the variation of results correlation coefficient for the images was calculated and tabulated in Table 1. MSE calculations from Table 1 show that both the decrypted images generated are one and the same. Also it is evident that the time taken (Average of 15 trails) to process an uncompressed image (BMP) is lesser when compared to a compressed image (JPG).

4.3. Analysis to show the effect of the non-determinism

In this experiment the same image is encrypted with same key at different instances of time, and the correlation coefficients of these images are tabulated. This is to prove that the proposed system is semantically secure.

a b

c d

Fig.8. (a), (b), (c), (d) represent the histograms of encrypted images generated at different time instances using the same cipher key. This is where the concept of semantic security kicks in.

Image Correlation Coefficient of Red Component Correlation Coefficient of Green Component Correlation Coefficient of Blue Component MSE of Red Component MSE of Green Component MSE of Blue Component Avg. Encryption Time (ms) Avg. Decryption Time (ms) BMP Image 0.0001 0.0005 0.0031 0 0 0 2502.8 4248.6 JPG Image -0.0033 -0.0005 -0.0012 0 0 0 2561.6 4283.4

(7)

Table 2. Correlation coefficient of the encrypted images from different instances of time

Image Correlation Coefficient

of Red Component Correlation Coefficient of Green Component Correlation Coefficient of Blue Component Fig.8(a) 0.0014 0.0026 -0.001 Fig.8(b) -0.0001 -0.0013 0.0031 Fig.8(c) -0.0005 0.0027 0.0005 Fig.8(d) 0.001 -0.0011 0.0041

From Table 2 it is evident that, even though the histograms may not show the variation between them, clearly their correlation coefficients vary appreciably to say that the generated images are different from one another.

4.4. Key sensitivity analysis

In this experiment the sensitivity of the key used is demonstrated, by a changing a single bit in the key, the generated images show appreciable variation to declare that both the images are different.

a b

c d

Fig. 9. (a), (b), (c), (d) represent the encrypted images using different keys with only one-bit variation. The keys used by the respective images are:

(i) 1234567890ABCDEF1234567890ABCDEF (ii) 1234567890ABCDEF1234567890ABCDEE (iii) 1234567890ABCDEF1234567890ABCDED (iv) 1234567890ABCDEF1234567890ABCDEB

(8)

Table 3. Correlation coefficient of encrypted images using different keys

Though it may unclear from the histograms, but from Table 3 it is pretty clear that the images generated are different from one another.

4.5. Confusion and Diffusion Analysis

The proposed system is inspired and inferred from the AES9,10, So confusion is achieved by the SubBytes step and diffusion is achieved by the ShiftRows and MixColumns steps. The AES offers excellent confusion and diffusion properties which is incorporated into the proposed system. Changing a single bit of the cipher text could drastically change the output as seen above. Also the Rijndael S-Box provides non-linearity in the cipher. Also the confusion and diffusion process is repeated several times to increase the amount of scrambling. 5. Conclusion

This paper proposes a simple and efficient counter measure for chosen cipher attack by implementing semantic security for encrypting an image. The entire image’s pixel data is extracted and split into blocks, and for each block the encryption process is carried out and the final encrypted image is reconstructed by combining all the blocks. To implement semantic security a unique timestamp is X-ORed with the first block of data, the subsequent blocks are X-ORed with the previous encrypted block of data. The experimental results show that the algorithm provides high order of security and generates varied results at different instances of time. The main features of the proposed image encryption scheme are: lossless encryption of the image, symmetric private key system, the original and encrypted file are of the same size, good confusion and diffusion properties, encryption or decryption uses X-OR operations and can be implemented on hardware easily. The robustness of the algorithm can be increased further by increasing the key size and the block size for the image.

References

1. Ali B.Y. Mohammad and J. Aman, “Image encryption using block based transformation algorithm”, IAENG International Journal on

Computer Science 35 (2008) 15–23.

2. Nidhi S. Kulkarni; Indra Gupta and Shailendra N. Kulkarni, “A robust image encryption technique based on random vector”, in: Proceedings of the First International Conference on Emerging Trends in Engineering and Technology, pp. 15–19, 2008.

3. Grigorios Chryso; Apostolos Dollas and Nikolaos Bourbakis, “Architecture and design of an embeddable system for SCAN-based compression, encryption and information hiding”, International Journal on Real-Time Image Process. 2 (2007) 207–222.

4. C.K. Huang; C.W. Liao; S.L. Hsu·and Y.C. Jeng, ”Implementation of gray image encryption with pixel shuffling and gray-level encryption by single chaotic system”, Journal on Telecommunication system, Springer, pp.563-571, 2013.

5. Iqtadar Hussain; Tariq Shah and Muhammad Asif Gondal, “Application of S-box and chaotic map for image encryption”, Journal on

Mathematical and Computer Modelling, Elsevier, pp.2576-2579, 2013.

6. Yushu Zhang and Di Xiao, “An image encryption scheme based on rotation matrix bit-level permutation and block diffusion”, Journal on

Commun Nonlinear Sci Numer Simulat, Elsevier, pp.74-82, 2014.

7. Iqtadar Hussain; Tariq Shah and Muhammad Asif Gondal, “An efficient image encryption algorithm based on S8 S-box transformation

and NCA map”, Journal on Optics Communications, Elsevier, pp.4887-4890, 2012.

8. Benyamin Norouzi; Seyed Mohammad Seyedzadeh; Sattar Mirzakuchaki and Mohammad Reza Mosavi, “A novel image encryption based on hash function with only two-round diffusion process”, Journal on Multimedia Systems, Springer, pp.45-64, 2014.

9. Scott Vanstone; Paul van Oorschot and Alfred Menezes, Handbook of Applied Cryptography, CBS Publishers, 5th edition, 2001.

10. Jonathan Katz and Yehuda Lindell, Introduction to Modern Cryptography, CRC Press, 1st edition, 2007.

Image Correlation Coefficient of Red Component Correlation Coefficient of Green Component Correlation Coefficient of Blue Component Fig.9 (a) 0.0001 0.0005 0.0031 Fig.9 (b) 0.0058 0.0023 0.0008 Fig.9 (c) 0.0015 0.0031 -0.0019 Fig.9 (d) -0.002 0.001 0.0006

References

Related documents

User Plaintext CCR Policy Encryption Engine Hospital SSL Web Server Offline Key Server Encrypted CCR ABE Private Key Plaintext CCR ABE decryption Partially or fully encrypted

To perform the Plain text sensitivity analysis at first the original image is encrypted with the secret key resulting in “encrypted image P” and after that with

The main characteristics of the proposed encryption methods are (a) lossless encryption of image, (b) number of encryption keys is larger than that of most existing image or

7-B, indicates a semi-uniform distribution of encrypted image pixels which shows robustness of the proposed algorithm against histogram attack methods.. (A)

Each segment (file) of the image is encrypted with a randomly-generated image key using strong encryption (AES-256).. The image key is protected by desired credentials, a password

Figure 5.7: Histogram of encrypted image of crowd using chaotic sequence y In the second stage of encryption, the resultant images of first stage is again encrypted using the public

In this paper an application has been designed to encrypt and decrypt any type of file with any size , the application consist of ten symmetric encryption algorithm namely; AES,

Some blocks of pixels of the image are selected for encryption process and that certain portion of the image is encrypted using Selective Block Encryption algorithm.. The