Abstract

A new image compression-encryption method based on compressive sensing and double random-phase encoding is proposed, which can complete image compression and encryption simultaneously. We utilize the hyperchaotic system to generate a measurement matrix and two random-phase masks first. Then the original image is measured by measurement matrix to accomplish encryption and compression at the same time, next the compressed image is reencrypted by the double random-phase encoding technique with the two random-phase masks, and lastly the resulting image is confused and diffused by using hyperchaotic system simultaneously. Some numerical simulations verify the validity and the reliability of the proposed algorithm.

1. Introduction

With the development of network and communication technology, encryption technique becomes more and more important for the information security and network security. It is one of the most important methods in protecting network security, which can prevent the illegal easy stealing, distorts, duplicates, and spreads of sensitive information. In 1989, a typical image encryption method with advantages of good performance and high security was based on chaos theory which was proposed by Matthews [1]. Subsequently, all kinds of chaos-based image encryption techniques have been reported [27]. Guan et al. employed Arnold cat map and Chen’s chaotic system to shuffle the positions and change the gray values of image pixels [3]. In [2], Chen et al. proposed a symmetric image encryption scheme based on 3D chaotic cat maps. Gao and Chen proposed a novel image encryption algorithm based on hyperchaos, which uses a new image total shuffling matrix to shuffle the pixel positions of the plain image and then the states combination of hyperchaos is used to change the gray values of the shuffled-image [6]. A chaos-based image encryption algorithm with variable control parameters is proposed [7].

The double random-phase encoding (DRPE) was first proposed in 1995 [8]; since then, many researchers have proposed and analyzed a lot of encryption algorithms based on DRPE [914]. In [9], Zhang and Karim proposed a new encryption technique to encrypt color images using existing optical encryption systems for gray-scale images. Subsequently, Unnikrishnan et al. proposed an optical architecture that encodes a primary image to stationary white noise by using two statistically independent random-phase codes, the encoding is done in the fractional Fourier domain, and the optical distribution in any two planes of a quadratic phase system is related by fractional Fourier transform of the appropriately scaled distribution in the two input planes [10]. After that, a lensless optical security system based on double random-phase encoding in the Fresnel domain was designed [11]. To enhance security further, a novel image encryption method is proposed by utilizing random-phase encoding in the fractional Fourier domain to encrypt two images into one encrypted image with stationary white distribution [12].

Recently, encryption methods [1518] based on compressive sensing (CS) [19, 20] have been widely studied. Zhang et al. proposed a new color image encryption algorithm combining compressive sensing with Arnold transform, which can encrypt the color image into a gray image [15]. In [16], an image information encryption method based on compressive sensing and double random-phase encoding is proposed. Lately, Zhou et al. proposed a novel image compression-encryption scheme by combining 2D compressive sensing with nonlinear fractional Mellin transform [17]. To overcome the low-security and reduce the possible transmission burden, an efficient image compression-encryption scheme based on hyperchaotic system and 2D compressive sensing is proposed [18].

In this paper, a new image encryption method based on CS and DRPE technique is proposed which can accomplish encryption and compression at the same time. In this scheme, the original image is measured by the measurement matrix first, where the measurement matrix is controlled by hyperchaotic system with initial conditions. And then the two random-phase masks generated by the hyperchaotic system performs DRPE with the compressed image. Lastly, the resulting image is confused and diffused by using hyperchaotic system simultaneously.

2. Preliminaries for Proposed Technique

In this section, some preliminaries about the CS theory and DRPE technique used in image encryption algorithm are introduced.

2.1. Compressive Sensing

CS is a new sample theory, which can reconstruct original signal by directly sampling a sparse or compressible signal at a rate much lower than the Nyquist rate. For a 1D signal in with length could be represented aswhere is the matrix with as columns and is the coefficient sequence of signal . Suppose that measurements of are taken through the following linear measurement:where is an measurement matrix incoherent with basis matrix . In fact, the magic of CS is that can be designed such that can be recovered approximately form the measurements when the matrix satisfies the Restricted Isometry Property (RIP) [22].

To recover the signal from , it is required to solve the optimal problem below:

The problem above can be solved by greed iterative algorithm, one of the most commonly used algorithms is the orthogonal matching pursuit (OMP) method [23].

2.2. Double Random-Phase Encoding

In 1995, Refregier and Javidi proposed the DRPE technique [8]. The encoded image is obtained by random-phase encoding in both the input and the Fourier planes. If two random-phase masks are used to encrypt the image in the input and Fourier planes, respectively, the input image is transformed into a complex-amplitude stationary white noise.

Let denote the image to be encoded and denote the encoded image. and stand for the key function in the spatial and frequency domain, respectively, and the values of which are distributed from 0 to 1 with uniform probability.

The encoding and decoding procedures are shown as follows:where and represent the 2D fast Fourier transformation and inverse 2D fast Fourier transformation, respectively.

2.3. Hyperchaotic System

In the proposed encryption scheme, a new hyperchaotic system generated from Gao et al.’s chaotic system is used in key scheming, which is defined by [24]where , , , , and are the control parameters of the hyperchaotic system. When , , , , and , the system is in a hyperchaotic state. The hyperchaos attractors are shown in Figure 1. With parameters , , , , and , its Lyapunov exponents are , , , and , respectively. Since the hyperchaotic system has two positive Lyapunov exponents, the prediction time of the hyperchaotic system is shorter than the original chaotic system [25]; as a result, it is safer than chaos in security algorithm. Because of this advantage of the hyperchaotic system, we will use it to generate the keys in the compression and encryption stage of our algorithm.

3. The Proposed Image Encryption Scheme

This section presents the proposed scheme for image encryption by using CS and DRPE. Assume that the size of original image is . The procedure of encryption is given as follows.

Step 1. Confirm the values of the initial conditions , , , , and iterate the hyperchaotic system for a suitable times by Runge-Kutta algorithm to avoid the harmful effect of transient procedure.

Step 2. The hyperchaotic system is iterated, and as a result, four hyperchaotic sequences , , , and would be generated, respectively. And then transform these sequences into sequences , that can be replaced by , , , and .

Step 3. The hyperchaotic sequences are exploited to construct the measurement matrix . By taking successive elements of the hyperchaotic sequences, we convert it into measurement matrix of size .

Step 4. The original image is extended in the domain and then performed the projection measurement in to obtain , where is set to be wavelet transform.

Step 5. Divide the measurement into two equal blocks; that is, . Each block has size . We can add a random column to if is not an even number.

Step 6. The hyperchaotic sequences are exploited to construct the random-phase masks and . Take the construction of the random-phase mask , for example, and the steps are as follows:
(1) By taking successive elements of the sequence , we convert it into a random matrix of size .
(2) Let .
With another sequence , the random-phase mask could be constructed in the same way.

Step 7. Combine and to obtain the complex-amplitude image:

Step 8. is first multiplied by the first random-phase mask , then transformed by 2D fast Fourier transformation (FFT), and multiplied by the second random-phase mask and inverse 2D fast Fourier transformation. Thus, we obtain the intermediate encryption result , which is given bywhere denotes the extracting real part operator and denotes the extracting imaginary part operator.

Step 9. All pixels of are mapped into an integer range from 0 to 255.And then arrange the pixels from row to column, and we can get two sequences of , , shown as follows:

Step 10. Confirm the values of the initial conditions , , , , and iterate the hyperchaotic system for a suitable times by Runge-Kutta algorithm. Four hyperchaotic sequences , , , and will be generated, respectively.

Step 11. Transform the four hyperchaotic sequences , , , and into integer sequences , can be replaced by , , , and .where returns the remainder after division.

Step 12. Took successive elements of sequences , , , and , respectively. And we can get four new sequences , , , and .

Step 13. Perform pixel value diffusion according to (14), and we can get and .whereHere and initial values , , , and are keys. The symbol represents the exclusive OR operation bit-by-bit.

Step 14. Reshape the sequences , and obtain the two matrices , with the size .

In the encryption process, is saved for encrypted image. In the decryption process, the encrypted image is first performed by the inverse diffusion process, and then original image information is reconstructed approximately via OMP algorithm after the decryption of double random-phase encoding.

4. Numerical Simulation and Analysis

We illustrate the performance of the proposed image encryption algorithm by means of a series of numerical simulations. In the numerical simulations, the gray image “Lena” and “Cameraman” with 256  ×  256 pixels, shown in Figures 2(a) and 2(d) serve as the test images of the image encryption scheme combining CS with DRPE. is designed 256  ×  256, 2D wavelet transform matrix which has the same size with image “Lena” and “Cameraman”, and is an 192  ×  256 measurement matrix. Therefore, the size of the ciphered image is . For convenience, the encryption key 1 and key 2 are fixed at and , respectively. And they are also the decryption keys. The encrypted “Lena” and “Cameraman” are shown in Figures 2(b) and 2(e). The decrypted image with the correct keys are shown in Figures 2(c) and 2(f).

In order to verify the results of the investigation, the peak signal-to-noise ratio (PSNR) between the original image and decryption image is used for measuring the quality of decrypted digital image as described:where and denote the values of reconstructed image and original image at pixel , respectively. The experimental result demonstrates that the quality of the decrypted image is very good and the PSNR is 30.84 dB. From Table 1, the quality of the decrypted image is acceptable for different compression ratios, it means that the compression ability of the proposed algorithm is very well.

4.1. Statistical Analysis Attack

We test the statistical analysis of the proposed image encryption scheme from the histograms of the encrypted images of different images and the correlations of adjacent pixels of the original image and its corresponding encrypted image.

The histograms of “Lena” and “Cameraman” are shown in Figures 3(a) and 3(c), respectively, while Figures 3(b) and 3(d) display the histograms of their corresponding encrypted images, respectively. Although the two images are markedly different, the histograms of their encrypted images are very similar. In general, an effective and safe image encryption algorithm should make the encrypted images corresponding to different original images have similar histograms. In other words, the attacker cannot get any useful information by analyzing the histograms of the encrypted images. Therefore, the proposed algorithm is effectively resistant to the basic statistical analysis attack.

The correlation coefficient of any two adjacent pixels is calculated as follows:where and . The correlation coefficients of the proposed algorithm and the algorithm in [21] are compiled in Table 2, which indicated that the proposed algorithm possesses better property than the algorithm in [21]. Figures 4(a)4(d) show the correlation distribution of two vertically adjacent pixels in the original “Lena,” the encrypted “Lena,” the original “Cameraman,” and the encrypted “Cameraman,” respectively. The adjacent pixels of the original in each direction are tightly correlated and the correlation coefficients are all greater than 0.92 in each direction, while the correlation of the encrypted image is almost smaller than 0.004 in each direction.

4.2. Key Space and Sensitivity Analysis

It is generally known that an effective encryption algorithm should be still secure even if the eavesdroppers know everything except the key. It requires that the key space should be large enough to resist brute-force attacks. In this proposed algorithm, , , , , , , , , , and are used as main keys. Here, the key space is calculated for to generate two different sequences and by using and as initial values and both sequences are of length ; define mean absolute error between the two sequences as [26]The key space of is equal to , where is the value of for . The simulation results show that comes out to be ; that is, the key space of is , and so are , , , , , , and . Similarly, the key space of and is about . Thus, the total key space is , which is large enough to withstand the brute-force attack.

As is well known, a good image encryption algorithm should be sensitive to the keys, which means that a tiny change in the keys would lead to a great distortion in the decrypted images visually. So in order to measure the differences of two image, the mean square error (MSE) is employed here. The MSE between decrypted image and original image is defined as follows [12]:where and are the sizes of the images and and denote the values of the original and the decrypted image of the pixel , respectively. To analyze the key sensitivity, eleven groups of keys are used to decrypt the encrypted “Lena,” and the calculated MSE values between the original “Lena” and its corresponding decrypted “Lena” are shown in Table 3. It is noted from Table 3 that the MSE is very large with deviation to one parameter of , and the MSE is small only when the keys are correct. In other words, the decrypted image can be recognized only when the keys are correct; that is, the proposed scheme is very sensitive to the keys. The simulation results of five sets of keys are shown in Figures 2(c) and 5. Figure 2(b) is the decrypted image with the correct keys. Figure 5 shows the decrypted “Lena” with the incorrect keys deviated from one parameter of , respectively.

4.3. Differential Analysis

We have also measured the number of pixels change rate (NPCR) to see the influence of changing a single pixel in the original image on the encrypted image by the proposed algorithm. The NPCR measures the percentage of different pixel numbers between the two images. We take two encrypted images, and , whose corresponding original images have only one-pixel difference, respectively. We define a two-dimensional array , having the same size as the image or . Then, is determined by and ; namely, if , then ; otherwise, . The NPCR is evaluated by the following equation [2]:where and are the width and height of or .

In the proposed scheme, a small difference in the plain image can affect the whole cipher image. The percentage of pixel changed in the cipher image is 100% even with a one-bit difference in the plain image (here, we randomly choose a pixel at position ()), Figure 6(a) shows the cipher image corresponding to only one-pixel difference in the original “Lena”, and the difference image between Figures 2(b) and 6(a) is shown in Figure 6(b). Thus, the proposed encryption scheme is able to resist the differential attack.

5. Conclusion

A new image compression-encryption algorithm combining compressive sensing with double random-phase encoding is proposed. We utilize the characteristics of the CS theory to cutdown the size of the original image proportionally in the encryption process. Then, the transformed image information can be reencrypted by DRPE technique where the random-phase masks are generated by the hyperchaotic system. Lastly, the resulting image is confused and diffused by using hyperchaotic system simultaneously. The simulation results indicate that the proposed scheme can resist statistical analysis, brute-force attack, and differential attack due to its considerably large key space.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

The authors thank Ruisong Ye for his help in polishing the paper. The authors would like also to thank the support from National Science Fund of China (Grants nos. 11071152, 11601188, 11701355) and the Natural Science Foundation of Guangdong Province (Grant no. 2015A030313443), China.