Abstract
Combining the advantages of structured random measurement matrix and chaotic structure, this paper introduces a color image encryption algorithm based on a structural chaotic measurement matrix and random phase mask. The Chebyshev chaotic sequence is used in the algorithm to generate the flip permutation matrix, the sampling subset and the chaotic cyclic matrix for constructing the structure perceptual matrix and the random phase mask. The original image is compressed and encrypted simultaneously by compressed sensing, and re-encrypted by two-dimensional fractional Fourier transform. Simulation experiments show the effectiveness and reliability of the algorithm.
Subject terms: Computer science, Information technology
Introduction
Images can truly show us the real world, especially color images are becoming more and more important in life. For a color image, it has three elements of R, G, and B, so it contains more information than grayscale images, its original features, large amount of data, high redundancy, high correlation between pixels. In order to protect image information, major contributions have been made in the fields of steganography1,2, and encryption3–5. In recent years, chaos has some ideal cryptographic characteristics such as initial value sensitivity and pseudo-randomness, which makes the chaotic encryption scheme widely used6–17. For example, Ahmad et al. proposed a chaos-based high-key image encryption scheme that makes even one round of encryption, the key space is very large9. For the small number of keys and simple key transmission method, Wu et al. used 4D cat mapping and elliptic curve ElGamal for asymmetric encryption10. Considering the increase in image size, Chai et al. proposed to divide the image into blocks for scrambling and diffusion11.
Donoho proposed a new sampling reconstruction technology, this technology is called compressed sensing18. Various CS encryption schemes with high efficiency and low data volume have been proposed, but CS-based encryption schemes are not resistant to selective plaintext attacks19. Since the measurement matrix satisfies low cross-correlation, a random matrix such as a Gaussian random matrix has a large-capacity memory and high complexity20,21. Therefore, in order to eliminate the shortcomings of random matrix, an encryption scheme based on CS and chaotic system22–25 is designed, and deterministic matrix is introduced instead of random matrix26,27. For example, Naidu proposes to use Euler lattice to construct a binary perceptual matrix, but this is limited to medical image and greatly limits the scope of application28. Combining the advantages of chaos, this paper proposes a structural chaotic matrix, using Chebyshev map to construct a flip scrambling matrix, a chaotic-based cyclic matrix, and a sampling subset. These three parts are completely determined structures. Although CS is used to reduce the amount of data re-encryption, the characteristics of color images still exist.
Due to the high speed and parallel processing of optical images, a large number of optical-based image encryption schemes have been proposed29–31. Although classical optical encryption based on double random phase mask is easy to attack32, it lays a foundation for subsequent optical encryption schemes. Use FrFT, Fresnel transform to enhance security33,34 to overcome various attacks. For example, Farah et al. proposed a new method for encrypting optical images using fractional Fourier transform, DNA sequence manipulation, and chaos theory. The encryption method has high security but high complexity and cost35. In order to avoid high complexity and too large data to transmit, a combination of CS and optical encryption is proposed36–40. Zhang et al. proposed a fast and effective color image encryption scheme based on two-dimensional compressed sensing and fractional Fourier transform36. To solve the risk of linear transformation in image encryption technology, Zhou et al. proposed an image encryption scheme that combines compressed sensing and nonlinear fractional Merlin transformation37. In order to reduce the amount of data, the algorithm uses Chebyshev map to generate chaotic sequences to construct a deterministic structured sensing matrix and a random mask. The image is first compressed and subjected to two-dimensional fractional Fourier transform. Through simulation experiments, the algorithm has good security performance and can resist common attacks.
To overcome the above difficulties, we propose a structure-sensing matrix and two-phase random mask color image encryption algorithm. The main contributions of this paper are: (1) Combining the advantages of a structured random perception matrix and a chaotic structure, a random perception matrix with a secure structure is proposed. The novelty of the matrix is that the original signal is flipped, the flipped coefficient is measured quickly and pseudo-randomly, and the final sample is obtained by sampling. (2) In real life, the utilization rate of color images is higher, but the color image data has a large amount of data, high redundancy, and high correlation between pixels. Our proposed encryption scheme can overcome these difficulties. Using CS can simultaneously compress and Encryption, reducing data volume and degrading transmission costs. (3) The proposed encryption scheme overcomes the difficulty that the previous Fourier transform-based encryption schemes are easily attacked. The two-dimensional fractional Fourier transform is used to increase the key space. The experimental results and security analysis show the security of the algorithm.
Algorithm foundation
Compressed sensing
Compressed sensing theory is a brand new signal sampling compression. Suppose that the signal of size can be expressed as sparse basis :
| 1 |
is a sparse orthogonal base of size , and s is a sparse coefficient. If the coefficient s has non-zero coefficients, then is said to be the sparse basis of the signal f.
The sampling process is a linear projection of the signal f:
| 2 |
where is a projection matrix of size . y is a linear measure of size . In addition, the sensing matrix A should satisfy the RIP criteria41:
| 3 |
wherein the equidistance constant , k is the number of coefficients s that are not zero.
The signal f measured using can be recovered from y.
| 4 |
In order to solve the above non-convex problems, many reconstruction algorithms have been proposed, such as orthogonal tracking algorithm (OMP)42, smooth norm ()43 and so on.
Fractional Fourier transform
In order to improve the security of the system, the Fourier transform is improved to a fractional Fourier transform, and the required angle is used as a key to increase the key space and key sensitivity. First, the mathematical definition of one-dimensional fractional Fourier transform is introduced44:
| 5 |
where the kernel function ,
where is the p-order Fractional Fourier transform of signal , and p is the fractional order of Fractional Fourier transform. x and u respectively represent the input domain coordinates and the p-order fractional domain coordinates. represents the rotation angle of the time–frequency plane, represents the impulse function, and is a positive integer.
The two-dimensional fractional Fourier transform is a generalization of the one-dimensional fractional Fourier transform. In the field of optics, a two-dimensional fractional Fourier transform is realized by optical instruments, which is defined as follows45:
| 6 |
is the original signal, is a kernel function, is expressed as a transformation order in the directions, and represents a rotation angle.
Chebyshev chaotic map
Since chaotic systems can generate pseudo-random sequences and are sensitive to initial values. In order to construct the sensing matrix, the Chebyshev chaotic system is used in this paper. The mathematical definition is as follows46:
| 7 |
is a positive integer, , when is the initial value, is a chaotic sequence. as the key of the cryptosystem. Chebyshev chaotic sequences are used to construct sensing matrices and random masks. That is to say, in the secure channel, we transmit the key instead of the perceptual matrix and the random mask. That is, the chaotic system controls the entire process.
Image encryption and decryption process
Algorithm 1
The Chebyshev chaotic system generates a chaotic sequence , and records the position sequence corresponding to the sequence .
The sequence is sorted in ascending order, and the corresponding position sequence becomes chaotic sequence as the order changes.
Select the first m numbers of the chaotic sequence to get a subset.
Select m rows of matrix according to subset.
Figure 1 is the process of color image encryption and decryption based on compressed sensing and two-dimensional fractional Fourier transform.
Figure 1.
The proposed color image encryption and decryption scheme.
Encryption process
First, the Discrete Walsh transform (DWT) standard orthogonal basis sparse representation is performed on the three components of the color image from two directions:
| 8 |
The three components of the color image are processed separately, and no other formats need to be converted.
The sparse signal is then measured using a chaotic sequence constructed by Chebyshev to construct a measurement matrix . The measurement matrix is defined as follows:
| 9 |
Among them, N is the width of the image, . The coefficient is normalized to such that the energy of the measured value is close to the energy of the original signal. D is a random sampling operator, which is a random sample of the m rows of according to a subset . In this paper, a chaotic system-based permutation algorithm is proposed for sampling. The essence of the permutation algorithm is to randomly select m rows using pseudo-random sequences generated by chaotic systems (algorithm 1).
is a cyclic matrix based on chaotic sequences. The size of C is , defined as follows.
| 10 |
where is the ith element of the chaotic sequence , is the variance of the matrix , is for normalizing , is for passing important information in to the measured value, and chaos-based cyclic matrix is only required for Element storage, which reduces memory requirements.
is a diagonal matrix in which diagonal elements are determined by chaotic sequences.
| 11 |
is the element of the sequence . According to the nature of the Chebyshev sequence, the probability that the diagonal element in is equal to 1 or − 1 is the same. So is equivalent to a pseudo-randomizer that can change the sign of the signal.
Since the sampling subset , the diagonal matrix , and the chaotic sequence circulant matrix are all generated by the Chebyshev chaotic map, the is a certain measurement matrix. To generate different measurement matrices, only the initial conditions of the Chebyshev system need to be changed.
Compressed sensing process is as follows:
| 12 |
The reconstruction algorithm (OMP or ) can be used to recover , and finally the original signal is obtained by performing the inverse operation of the sparse coefficient and the sparse basis.
Finally, the measured image is subjected to two-dimensional fractional Fourier transform encryption using two random phase masks, which are generated based on the chaotic sequence. If the fractional Fourier transform is used directly, the data will explode, so CS has a major role in overcoming this defect.
The detailed encryption operations are as follows:
Step 1: The color image can be divided into three images according to the RGB component, respectively denoted as . They are respectively sparsed by the sparse base in the wavelet transform domain to obtain . Then perform Arnold scrambling on to get . Set the threshold TS, modify the elements of , if the absolute value of the element is less than TS, change the element value to 0, get .
Step 2: Generating measurement matrix , the specific process is as follows:
Given as the initial condition, the Chebyshev chaotic map is taken. The chaotic sequence is generated, and the matrix is obtained according to Eq. (10) by .
Obtain the matrix according to Eq. (11), obtain the sampling subset according to the algorithm 1, and finally obtain the according to Eq. (9).
Step 3: The measurement matrix is measured in the three (stained) images of Eq. (8), which is compressed sensing. The measurement matrix measures the three thinned images in Eq. (8), that is, the compressed sensing. The three measured values are obtained as .
Step 4: Next, the two measured images are subjected to two-dimensional fractional Fourier transform encryption.
-
Take the three measured images as an image , the size is , divide into two parts from the middle, the left part is , the right part is , their size is , and the two parts are combined into a complex number, is the real part, is the imaginary part.
13 is a complex image.
- is used as a random phase mask for fractional Fourier transform, and the image is encrypted as:
20
is a two-phase random mask, and is a fractional order in the direction, respectively.
Step 5: Perform global scrambling, ascending , record the changed position , as the address code to reorder the image to achieve scrambling effect. Convert the image into a one-dimensional matrix in the order of the columns, and scramble the one-dimensional matrix according to the following rules.
| 21 |
Then, the scrambled matrix is converted into a two-dimensional matrix, and after being scrambled, the ciphertext is finally output as .
Decryption process
The decryption step is the inverse process of encryption.
Step 1: The anti-scrambling process, imitating step 5 of the encryption process, generates a chaotic sequence according to the key , sorts to obtain an address code , converts into a one-dimensional matrix , and the assignment direction becomes:
| 22 |
Convert to two-dimensional matrix .
Step 2: Decrypt out :
| 23 |
Calculate the resulting complex-valued image and get two parts,
| 24 |
Step 3: Think of as an image, then divide it into three images, use algorithm to reconstruct the image, Arnold inverse scrambling and then perform wavelet inverse transform to obtain . Finally, the decrypted color image is obtained.
Simulation results and performance analysis
Simulation result
In order to verify the feasibility and effectiveness of the encryption scheme, the security performance tests in this paper include key space, key sensitivity, correlation analysis, histogram analysis and various common attack tests. As shown in Fig. 2, matlab simulation experiments were performed using “House”, “Baboon”, “Pepper” and “Airplane” color images of size , the corresponding TS are 10, 20, 10, 10. Figure 2a1–d1 are original images, Fig. 2a2–d2 are results of 2D CS, and Fig. 2a3–d3 are amplitudes of the encrypted image, the size of which is . The compression ratio is 0.664. Figure 2a4–d4 are the phases of the encrypted image, and Fig. 2a5–d5 are the decrypted images.
Figure 2.
Encrypting and decrypting images: (a1)–(d1) are the original images “House”, “Baboon”, “Pepper” and “Airplane”, (a2)–(d2) are the results of 2D CS, (a3)–(d3) is the amplitude of the encrypted image, (a4)–(d4) is the phase of the encrypted image, (a5)–(d5) is the decrypted image.
PSNR analysis
Restoring an image includes decoding and reconstruction, using FrFT to decode under the correct key, and solving the l1 norm minimized reconstructed image is only similar to the plaintext image, so the quality of the decrypted image is evaluated using PSNR, and the formula is as follows:
| 25 |
Of which,
| 26 |
denotes the original image and the decrypted image respectively. Under the correct key, the decrypted image is as shown in Fig. 2. The PSNR of the five images is 38.8780, 37.9466, 28.5954, 37.6960, 38.0903, respectively. Therefore, the image decrypted by this algorithm is good. Figure 3 shows the PSNR values of different CRs of Lena, Pepper, House and Airplane images. The larger the CR, the larger the PSNR value, and the better the reconstruction effect. Table 1 shows the reconstruction effect of Pepper image of different CR. It can be seen from Table 1 that the compression performance of this algorithm is good. Taking the Lena as an example, the Table 2 lists the reconstruction performance comparison between this algorithm and other algorithms. With the same CR from the Table 2, the reconstruction quality of this algorithm is better.
Figure 3.

PSNR vs CR for different plain images.
Table 1.
PSNR values for different compression ratios.
Table 2.
The compression performance of different algorithms.
Histogram analysis
Histogram analysis of important indicators of image security after image encryption47. As shown in Fig. 4a1–a3, b1–b3, c1–c3 represents the R, G, and B components of the three color images of “Lena”, “House” and “Baboon”, respectively, a4–c4, a5–c5 respectively represent the amplitude and phase after the three images are encrypted. Obviously, the histograms of the R, G, and B components of the three original images are different from each other, but different images are encrypted with very similar histograms, that is, the attacker cannot obtain useful messages from the ciphertext histogram.
Figure 4.
The histograms of plaintexts and ciphertexts: The original images “Pepper”, “House” and “Baboon”. (a1)–(c1) The histogram of original images R component, (a2)–(c2) The histogram of original images G component, (a3)–(c3) The histogram of original images B component, (a4)–(c4) The histogram of amplitude of encrypted images, (a5)–(c5) The histogram of phase of encrypted images.
Adjacent pixel correlation
Randomly select the plaintext images R, G, B three channels and the amplitude and phase of the ciphertext on 2000 pairs of pixels for correlation testing48. The simulation results are shown in Fig. 5, from a1–a3, d1–d3, it is found that the correlation of the plaintext images in the horizontal, vertical, and diagonal directions is concentrated, showing a clear linear relationship, from b1–b3, c1–c3, e1–a3, f1–f3 found that the encrypted image pixel values are evenly distributed and scattered, indicating that the algorithm proposed in this paper makes the statistical features of the plaintext image spread evenly into the ciphertext.
Figure 5.

Horizontal, vertical, diagonal correlation test results for “Pepper” and “Baboon” plaintext images and their ciphertext images: (a1)–(a3), (d1)–(d3) represent the horizontal, vertical and diagonal correlation distribution of the plaintext image, (b1)–(b3), (c1)–(c3), (e1)–(e3), (f1)–(f3) represent the horizontal, vertical and diagonal correlation distribution of the amplitude and phase of the ciphertext, respectively.
Randomly select the plaintext images R, G, B three channels and the amplitude and phase of the ciphertext on 2000 pairs of pixels for correlation testing. According to Eq. (27), the correlation coefficient of horizontal, vertical and diagonal angles is measured, and the operation is repeated 100 times to calculate the average of the correlation coefficients of horizontal, vertical and diagonal. The final statistical results are shown in Table 3.
| 27 |
Of which,
It can be seen from Table 3 that the correlation coefficients of the plain image in the horizontal, vertical, and diagonal adjacent pixels are large. After encryption, the correlation coefficients of the ciphertext in the horizontal, vertical, and diagonal adjacent pixels are small and both at 1%. The algorithm proposed in this paper can effectively reduce the correlation of adjacent pixels. It can be seen from Table 4 that the encrypted correlation coefficient of this paper is lower than that most algorithms, so the encryption scheme of this paper can resist statistical analysis.
Table 3.
The correlation coefficient of adjacent pixels.
| Correlation coefficient | The original images | Our encrypted images | |||
|---|---|---|---|---|---|
| R | G | B | Amplitude | Phase | |
| Lena | |||||
| Horizontal | 0.9389 | 0.9392 | 0.8932 | 0.0027 | − 0.0000 |
| Vertical | 0.9677 | 0.9688 | 0.9380 | − 0.0027 | − 0.0032 |
| Diagonal | 0.9090 | 0.9114 | 0.8474 | 0.0003 | 0.0026 |
| House | |||||
| Horizontal | 0.9670 | 0.9800 | 0.9818 | − 0.0013 | − 0.0055 |
| Vertical | 0.9353 | 0.9718 | 0.9747 | 0.0033 | − 0.0014 |
| Diagonal | 0.9127 | 0.9561 | 0.9621 | 0.0004 | − 0.0059 |
| Baboon | |||||
| Horizontal | 0.9135 | 0.8027 | 0.8774 | 0.0002 | − 0.0045 |
| Vertical | 0.8743 | 0.7570 | 0.8651 | − 0.0001 | 0.0065 |
| Diagonal | 0.8530 | 0.7010 | 0.8161 | 0.0027 | − 0.0007 |
| Pepper | |||||
| Horizontal | 0.9526 | 0.9620 | 0.9418 | 0.0035 | 0.0004 |
| Vertical | 0.9554 | 0.9688 | 0.9545 | − 0.0054 | 0.0023 |
| Diagonal | 0.9179 | 0.9365 | 0.9097 | 0.0012 | 0.0020 |
| Airplane | |||||
| Horizontal | 0.9107 | 0.9103 | 0.9257 | 0.0021 | − 0.0008 |
| Vertical | 0.8947 | 0.9048 | 0.8728 | 0.0015 | − 0.0042 |
| Diagonal | 0.8292 | 0.8464 | 0.8364 | − 0.0033 | − 0.0030 |
Table 4.
Comparison of this algorithm with other algorithms.
| Correlation coefficient | Encrypted images | |
|---|---|---|
| Amplitude | Phase | |
| Lena | ||
| Horizontal | 0.0027 | − 0.0000 |
| Vertical | − 0.0027 | − 0.0032 |
| Diagonal | 0.0003 | 0.0026 |
| Ref.9 | ||
| Horizontal | – | 0.0026 |
| Vertical | – | − 0.0038 |
| Diagonal | – | 0.0062 |
| Ref.10 | ||
| Horizontal | – | 0.0001 |
| Vertical | – | 0.0089 |
| Diagonal | – | 0.0091 |
| Ref.11 | ||
| Horizontal | – | 0.0044 |
| Vertical | – | 0.0151 |
| Diagonal | – | 0.0012 |
| Ref.36 | ||
| Horizontal | 0.0127 | 0.0127 |
| Vertical | 0.0101 | − 0.0271 |
| Diagonal | 0.0139 | 0.0183 |
| Ref.37 | ||
| Horizontal | 0.0104 | 0.0158 |
| Vertical | 0.0299 | 0.0158 |
| Diagonal | 0.0062 | − 0.0339 |
| Ref.38 | ||
| Horizontal | 0.2905 | − 0.0117 |
| Vertical | 0.4711 | − 0.2089 |
| Diagonal | 0.2894 | 0.0301 |
Information entropy
Test image randomness using entropy. If the entropy value is closer to 8, it means that the pixels of the image are more uniform. The formula for calculating entropy is as follows:
| 28 |
where g represents a set of pixels. is the probability of occurrence of g, and L is the total number of . Table 5 shows the entropy corresponding to different images and comparison with other algorithms. The table shows that the encrypted image is close to 8, which means that it is safe against entropy attacks. Moreover, our algorithm is larger than the entropy value of the literature9,10,12, which shows that our algorithm is effective.
Table 5.
Information entropy of different images.
Key space analysis
When an attacker uses a violent attack, this requires enough key space to prevent the attacker from obtaining any information without the correct key36. In this algorithm, take lena picture as an example, the control parameters of the Chebyshev chaotic system are , the initial value is related to the plaintext control parameter , the parameters of Arnold scrambling are , and the two-dimensional Discrete Fractional Fourier Transform (DFrFT) transform angle is . Using Matlab for simulation experiments, the calculation accuracy is , The control parameters, initial conditions and Arnold scrambling parameter key space are all , i.e. ; the transformation angle key space of the two-dimensional DFrFT is ; By calculating, the system key space is . It is much larger than the key space of each algorithm in Table 6, so the algorithm can resist brute force attacks.
Table 6.
Comparison of key space.
Key sensitivity analysis
The key sensitivity of the algorithm is very strong, any key small changes, other keys remain unchanged, under the correct encryption algorithm, cannot decrypt the correct plaintext image49. The simulation experiment results are shown in Fig. 6a–e respectively represent the decrypted image of , , ,,. Figure 6f–h respectively represent the decrypted image of , , . Figure 6i–l respectively represent the decrypted image of ,,,. Experiments have shown that small changes in the key have a great impact on decryption.
Figure 6.
Decrypted “Lena” with incorrect (a) , (b) , (c) , (d) , (e) , (f) , (g) , (h) , (i) , (j) , (k) , (l) .
Figure 7a shows the mean square error (MSE) curve of the deviation of the control parameter . Try different values in the range , step size is . Figure 7b–e shows the MSE curve of the deviation of initial condition , , , . Try different values in the range , step size is . It can be seen that the key is slightly transformed, the MSE is large, and the original image cannot be seen in the decrypted image. Figure 7f–i show the MSE graph of the deviation of the FrFT order , and it can be seen that the order is slightly changed, and the MSE is large. Therefore, this algorithm is very sensitive to keys.
Figure 7.
MSE curves for (a) , (b) , (c) , (d) , (e) , (f) , (g) , (h) , (i) .
Noise attack
Next, we test the resistance of this algorithm to noise. Take the Pepper as an example, add Gaussian noise (GN) with mean value of 0 and variance of , , to the encrypted image, and the decrypted images are shown in Fig. 8a–c. Add Salt and Pepper noise (SPN) with intensity , , to the encrypted image, and the decrypted images are shown in Fig. 8d–f. Add Speckle noise (SN) with intensity , , to the encrypted image, and the decrypted images are shown in Fig. 8g–i. Decrypting the noise-added image can see the rough information of the original image, so this algorithm has better robustness. Table 7 compares the PSNR value of the decrypted image and the Lena plaintext image when the encrypted image is attacked by GN, SPN, and SN when the compression rate is 50% with the algorithm25. It can be seen from the table that this algorithm has a stronger ability to resist noise attack. Add random noise of different intensities to the Lena ciphertext image, as shown in Eq. (29). The Table 8 is the PSNR value of the decrypted image and the plaintext image with random noise added with different intensities. It can be seen that the quality of the restored image by this algorithm is relatively high under the same intensity.
| 29 |
Figure 8.
The results of noise attack with different noise strengths: (a) GN, (b) GN, (c) GN, (d) SPN, (e) SPN, (f) SPN, and (g) SN, (h) SN, (i) SN.
Table 7.
The anti-noise performance comparison of two methods in the 50% sampling rate.
| Image | GN | SPN | SN | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Proposed | 34.8113 | 33.2051 | 32.4611 | 35.3472 | 35.3472 | 35.3472 | 35.3472 | 34.5733 | 33.9705 |
| Ref.25 | 30 | < 28 | < 27 | 31 | < 31 | < 30 | 31 | < 32 | < 32 |
Table 8.
The anti-noise performance comparison of two methods in the 75% sampling rate.
| Image | Random noise attack k = 0.1 |
Random noise attack k = 0.3 |
Random noise attack k = 0.6 |
|---|---|---|---|
| Proposed | 41.3867 | 38.7516 | 35.1461 |
| Ref.39 | 20.09 | 12.27 | 9.58 |
Clipping attack
When the ciphertext is subjected to a tailoring attack during transmission, there is no doubt that the quality of the decrypted image will decrease. Figure 9 shows three different clipping methods and their recovery results. Experiments show that although the decrypted image is a rough version of the original image, the main information of the original image can still be represented by the correct key. Experiments have shown that encryption algorithms can resist tailoring attacks. Table 9 is a comparison of the PSNR of Lena's decrypted image and plaintext image with other algorithms. The image is restored after 5%, 10%, and 20% loss of encrypted image data. It can be seen that the PSNR is lower as the data is lost more. Compared with the algorithm39, the PSNR value of this algorithm is dominant in the data loss of 5%, but with the increase of data loss, it is not dominant. Therefore, our algorithm can resist tailoring attacks to a certain extent.
Figure 9.
Robustness of the encryption scheme: (a) encrypted image with 5% data loss, (b) encrypted image with 10%data loss, (c) encrypted image with 20% data loss. (d)–(f) are corresponding decrypted images of (a)–(c), respectively.
Table 9.
The comparison of performance against cropping of two algorithms in the 75% sampling rate.
| Data loss intensity (%) | PSNR | Ref.39 |
|---|---|---|
| 5 | 13.25 | 12.51 |
| 10 | 10.21 | 10.67 |
| 20 | 7.19 | 8.72 |
Differential attack
To test whether an encryption scheme is good, NPCR (Number of Pixels Change Rate) and the UACI (Unified Average Changing Intensity) are important standards. If a slight change is made to the plaintext pixel value, which corresponds to a large change in the encrypted pixel value, it means that the encryption scheme is good. NPCR and UACI are the numerical response of this standard. The calculation method of NPCR and UACI is as follows11:
| 30 |
and
| 31 |
Here M and N respectively represent the width and height of the image, and and are the two ciphertext images after the original plaintext image has been changed by one pixel value. If , then , otherwise, . We add 1 to any pixel value, calculate 100 groups, and take the average to get Table 10. It can be seen from Table 10 that the NPCR obtained by the encryption scheme is about 99.60%, and the UACI is greater than 33%. Table 11 is the comparison result between this algorithm and other algorithms. We can find that although our results are not the best, they can resist differential attacks.
Table 10.
The mean NPCR and UACI of ciphered images.
| Images | NPCR (%) | UACI (%) |
|---|---|---|
| Lena | 99.6078 | 33.4531 |
| House | 99.6323 | 33.4499 |
| Baboon | 99.6246 | 33.3373 |
| Pepper | 99.5818 | 33.3626 |
| Airplane | 99.6155 | 33.1816 |
Table 11.
Comparison of NPCR and UACI on ‘Lena’.
The influence of different sparse and reconstruction methods on encryption and decryption results
To analyze the impact of sparse methods and reconstruction methods, we use DWT and DCT sparse 256 256 Pepper, and use OMP and SL to reconstruct image. As shown in Fig. 10, (a) is an encrypted image using DWT, (b) is an encrypted image using DCT, (c) is an image reconstructed using DWT sparse and SL0, and (d) is an image reconstructed using DWT sparse and OMP, (e) is an image reconstructed using DCT sparse and SL0, (f) is an image reconstructed using DCT sparse and OMP. It can be seen from the figure that using DWT sparse, the reconstructed visual quality is better. Figure 11 shows the relationship between the reconstruction effect and the threshold TS. It can be seen that when TS = 10, using DWT sparse, the PSNR value of SL0 reconstruction is the largest.
Figure 10.
Simulation results of different sparse and reconstruction methods for Pepper.
Figure 11.

PSNR vs TS for Pepper with different sparse and reconstruction methods.
Time analysis
In practical applications, both safety performance and time must be considered. As shown in Tables 12 and 13, this paper analyzes the encryption and decryption time of different sizes of images and different CRs. It can be seen from the table that for the same image, different CRs have a slight impact on the time. For 256 256 images, the encryption time range is 1.5–2, and for 512 512 images, the encryption time range is 5–6. For 256 256 images, the decryption time range is 3–5, for 512 512 images, the decryption time range is 10–15. The reason for the increase in the decryption time is that the reconstruction process takes a long time to find the optimal solution. When CR is equal, as the image size increases, the encryption and decryption process takes more time. Therefore, in practice, CR and time are comprehensively considered for selection. Table 14 compares the time with other algorithms. As shown in the table, our algorithm takes the shortest time.
Table 12.
Encryption time (second).
| Images size | Lena 256 256 | Baboon 256 256 | Pepper 512 512 | Airplane 512 512 |
|---|---|---|---|---|
| CR = 0.25 | 1.67 | 1.65 | 5.13 | 5.15 |
| CR = 0.5 | 1.80 | 1.72 | 5.79 | 5.51 |
| CR = 0.75 | 1.79 | 1.81 | 6.35 | 6.04 |
Table 13.
Decryption time (second).
| Images size | Lena 256 256 | Baboon 256 256 | Pepper 512 512 | Airplane 512 512 |
|---|---|---|---|---|
| CR = 0.25 | 4.59 | 3.94 | 10.37 | 10.97 |
| CR = 0.5 | 4.24 | 4.26 | 13.31 | 11.50 |
| CR = 0.75 | 4.70 | 4.47 | 14.58 | 13.78 |
Table 14.
The encryption time comparison results with other algorithms (second).
Conclusion
This paper combines the advantages of structured random perceptual matrix and chaos to obtain a structured sensing matrix measurement image. A compression-based and two-dimensional fractional Fourier image encryption is proposed. This paper first compresses and encrypts through CS, and then re-encrypts through 2D FrFT. The inverse scrambling matrix, the chaotic cyclic matrix, the sampling subset and the double random phase mask are generated by the Chebyshev chaotic sequence, that is, the chaotic system controls the encryption process. Simulation experiments show that the proposed algorithm has good resilience and robustness. It can not only resist statistical analysis, noise attack and tailoring attacks, but also has a large key space and is sensitive to keys. Therefore, the algorithm has good performance and security.
Acknowledgements
This research is supported by the National Natural Science Foundation of China (No: 61672124), the Password Theory Project of the 13th Five Year Plan National Cryptography Development Fund (No: MMJJ20170203), Liaoning Province Science and Technology Innovation Leading Talents Program Project (No: XLYC1802013), Key R&D Projects of Liaoning Province (No: 2019020105-JH2/103), Jinan City ‘20 universities’ Funding Projects Introducing Innovation Team Program (No: 2019GXRC031).
Author contributions
X.W. provides ideas, design solutions, and the division of labor throughout the project. Y.S. wrote the main manuscript and code.
Competing interests
The authors declare no competing interests.
Footnotes
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- 1.Liao X, Yingbo Yu, Li B, Li Z, Qin Z. A new payload partition strategy in color image steganography. IEEE Trans. Circuits Syst. Video Technol. 2020;30:685–696. [Google Scholar]
- 2.Liao X, Yin J, Chen M, Qin Z. Adaptive payload distribution in multiple images steganography based on image texture features. IEEE Trans. Dependable Secur. Comput. 2020 doi: 10.1109/TDSC.2020.3004708. [DOI] [Google Scholar]
- 3.Xian YJ, Wang XY, Yan XP, Li Q, Wang XY. Image encryption based on chaotic sub-block scrambling and chaotic digit selection diffusion. Opt. Lasers Eng. 2020;134:106202. [Google Scholar]
- 4.Ahmed F, Anees A, Abbas VU, Siyal MY. A noisy channel tolerant image encryption scheme. Wirel. Pers. Commun. 2014;77:2771–2791. [Google Scholar]
- 5.Anees A, Siddiqui AM, Ahmed F. Chaotic substitution for highly autocorrelated data in encryption algorithm. Commun. Nonlinear Sci. Numer. Simul. 2014;19:3106–3118. [Google Scholar]
- 6.Wang XY, Gao S. Image encryption algorithm for synchronously updating Boolean networks based on matrix semi-tensor product theory. Inf. Sci. 2020;507:16–36. [Google Scholar]
- 7.Wang XY, Feng L, Zhao HY. Fast image encryption algorithm based on parallel computing system. Inf. Sci. 2019;486:340–358. [Google Scholar]
- 8.Chen J, Chen L, Zhang LY, Zhu Z. Medical image cipher using hierarchical diffusion and non-sequential encryption. Nonlinear Dyn. 2019;6:301–322. [Google Scholar]
- 9.Ahmad J, Hwang SO. A secure image encryption scheme based on chaotic maps and affine transformation. Multimed. Tools Appl. 2015;75:13951–13976. [Google Scholar]
- 10.Wu J, Liao X, Yang B. Color image encryption based on chaotic systems and elliptic curve ElGamal scheme. Signal Process. 2017;141:109–124. [Google Scholar]
- 11.Chai X, Gan Z, Zhang M. A fast chaos-based image encryption scheme with a novel plain image-related swapping block permutation and block diffusion. Multimed. Tools Appl. 2017;76:15561–15585. [Google Scholar]
- 12.Wu X, Wang K, Wang X, Kan H, Kurths J. Color image DNA encryption using NCA map-based CML and one-time keys. Signal Process. 2018;148:272–287. [Google Scholar]
- 13.Guesmi R, Farah MAB, Kachouri A, Samet M. A novel chaos-based image encryption using DNA sequence operation and Secure Hash Algorithm SHA-2. Nonlinear Dyn. 2016;83:1123–1136. [Google Scholar]
- 14.Liu H, Wang X. Image encryption using DNA complementary rule and chaotic maps. Appl. Soft. Comput. 2012;12:1457–1466. [Google Scholar]
- 15.Wang XY, Gao S. Image encryption algorithm based on the matrix semi-tensor product with a compound secret key produced by a Boolean network. Inf. Sci. 2020;539:195–214. [Google Scholar]
- 16.Hua Z, Zhou Y. Image encryption using 2D Logistic-adjusted-Sine map. Inf. Sci. 2016;339:237–253. [Google Scholar]
- 17.Niyat AY, Moattar MH, Torshiz MN. Color image encryption based on hybrid hyper-chaotic system and cellular automata. Opt. Lasers Eng. 2017;90:225–237. [Google Scholar]
- 18.Donoho DL. Compressed sensing. IEEE Trans. Inf. Theory. 2006;52:1289–1306. [Google Scholar]
- 19.Huang R, Rhee KH, Uchida S. A parallel image encryption method based on compressive sensing. Multimed. Tools Appl. 2014;72:71–93. [Google Scholar]
- 20.Candes E, Tao T. Decoding by linear programming. IEEE Trans. Inf. Theory. 2005;51:4203–4215. [Google Scholar]
- 21.Tropp JA, Gilbert AC. Signal recovery from random measurements via orthogonal matching pursuit. IEEE Trans. Inf. Theory. 2007;53:4655–4666. [Google Scholar]
- 22.Xu QY, Sun KH, Cao C, Zhu CX. A fast image encryption algorithm based on compressive sensing and hyperchaotic map. Opt. Laser Eng. 2019;121:203–214. [Google Scholar]
- 23.Gong L, Qiu K, Deng C, Zhou N. An image compression and encryption algorithm based on chaotic system and compressive sensing. Opt. Laser Technol. 2019;115:257–267. [Google Scholar]
- 24.Zhou N, Jiang H, Gong L, Xie X. Double-image compression and encryption algorithm based on co-sparse representation and random pixel exchanging. Opt. Laser Eng. 2018;110:72–79. [Google Scholar]
- 25.Chai X, Zheng X, Gan Z, Han D, Chen Y. An image encryption algorithm based on chaotic system and compressive sensing. Signal Process. 2018;148:124–144. [Google Scholar]
- 26.Preishuber M, Hutter T, Katzenbeisser S, Uhl A. Depreciating motivation and empirical security analysis of chaos-based image and video encryption. IEEE Trans. Inf. Forensics Secur. 2018;13:2137–2150. [Google Scholar]
- 27.Zhang J, Han G, Fang Y. Deterministic construction of compressed sensing matrices from protograph LDPC codes. IEEE Signal Proc. Lett. 2015;22:1960–1964. [Google Scholar]
- 28.Naidu RR, Jampana P, Sastry CS. Deterministic compressed sensing matrices: construction via euler squares and applications. IEEE Trans. Signal Process. 2016;64:3566–3575. [Google Scholar]
- 29.Xi S, Yu N, Wang X, Ying M, Dong Z, Zhu Q, Wang W, Wang H. Optical encryption method of multiple-image based on θ modulation and computer generated hologram. Opt. Commun. 2019;445:19–23. [Google Scholar]
- 30.Sun W, Wang L, Wang J, Li H, Wu Q. Optical image encryption using gamma distribution phase masks in the gyrator domain. J. Eur. Opt. Soc. Rapid. 2018;14:28. [Google Scholar]
- 31.Zhan W, Zhang L, Zeng X, Chen J, Zhang D. Study on an optical encryption algorithm based on compressive ghost imaging and super-resolution reconstruction. Laser Phys. 2018;28:125202. [Google Scholar]
- 32.Refregier P, Javidi B. Optical image encryption based on input plane and Fourier plane random encoding. Opt. Lett. 1995;20:767–769. doi: 10.1364/ol.20.000767. [DOI] [PubMed] [Google Scholar]
- 33.Rawat N, Kumar R, Lee BG. Implementing compressive fractional Fourier transformation with iterative kernel steering regression in double random phase encoding. Optik. 2014;125:5414–5417. [Google Scholar]
- 34.Li X, Meng X, Wang Y, Yang X, Yin Y, Peng X. Secret shared multiple-image encryption based on row scanning compressive ghost imaging and phase retrieval in the Fresnel domain. Opt. Laser Eng. 2017;96:7–16. [Google Scholar]
- 35.Farah MAB, Guesmi R, Kachouri A, Samet M. A novel chaos based optical image encryption using fractional Fourier transform and DNA sequence operation. Opt. Laser Technol. 2020;121:105777. [Google Scholar]
- 36.Zhang D, Liao X, Yang B, Yang B, Zhang Y. A fast and efficient approach to color-image encryption based on compressive sensing and fractional Fourier transform. Multimed. Tools Appl. 2018;77:2191–2208. [Google Scholar]
- 37.Zhou N, Li H, Wang D, Pan S, Zhou Z. Image compression and encryption scheme based on 2D compressive sensing and fractional Mellin transform. Opt. Commun. 2015;343:10–21. [Google Scholar]
- 38.Liu XB, Mei WB, Du HQ. Optical image encryption based on compressive sensing and chaos in the fractional Fourier domain. J. Mod. Opt. 2014;61:3106–3118. [Google Scholar]
- 39.Liu Q, Wang Y, Wang J, Wang QH. Optical image encryption using chaos-based compressed sensing and phase-shifting interference in fractional wavelet domain. Opt. Rev. 2018;25:46–55. [Google Scholar]
- 40.Yi J, Tan G. Optical compression and encryption system combining multiple measurement matrices with fractional Fourier transform. Appl. Opt. 2015;54:10650–10658. doi: 10.1364/AO.54.010650. [DOI] [PubMed] [Google Scholar]
- 41.Candes EJ. The restricted isometry property and its implications for compressed sensing. CR Math. 2008;346:589–592. [Google Scholar]
- 42.Tu G, Liao X, Xiang T. Cryptanalysis of a color image encryption algorithm based on chaos. Optik. 2013;124:5411–5415. [Google Scholar]
- 43.Candes EJ, Romberg J, Tao T. Robust uncertainty principles: Exact signal reconstruction from highly incomplete frequency information. IEEE Trans. Inf. Theory. 2006;52:489–509. [Google Scholar]
- 44.Roopkumar R. Quaternionic one-dimensional fractional Fourier transform. Optik. 2016;127:11657–11661. [Google Scholar]
- 45.Sahin A, Ozaktas HM, Mendlovic D. Optical implementations of two-dimensional fractional Fourier transforms and linear canonical transforms with arbitrary parameters. Appl. Opt. 1998;37:2130–2141. doi: 10.1364/ao.37.002130. [DOI] [PubMed] [Google Scholar]
- 46.Liu H, Wang X. Color image encryption based on one-time keys and robust chaotic maps. Comput. Math. Appl. 2010;59:3320–3327. [Google Scholar]
- 47.Kang XJ, Tao R. Color image encryption using pixel scrambling operator and reality-preserving MPFRHT. IEEE Trans. Circ. Syst. Video Technol. 2019;6:1919–1932. [Google Scholar]
- 48.Kang XJ, Ming A, Tao R. Reality-preserving multiple parameter discrete fractional angular transform and its application to color image encryption. IEEE Trans. Circ. Syst. Video Technol. 2018;6:1595–1607. [Google Scholar]
- 49.Wang XY, Guan NN, Zhao HY, Wang SW, Zhang YQ. A new image encryption scheme based on coupling map lattices with mixed multi-chaos. Sci. Rep. 2020;10:9784. doi: 10.1038/s41598-020-66486-9. [DOI] [PMC free article] [PubMed] [Google Scholar]









