Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Next Article in Journal
Performance Optimization of a Condenser in Ocean Thermal Energy Conversion (OTEC) System Based on Constructal Theory and a Multi-Objective Genetic Algorithm
Previous Article in Journal
Bounds on the Transmit Power of b-Modulated NFDM Systems in Anomalous Dispersion Fiber
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel Hybrid Secure Image Encryption Based on the Shuffle Algorithm and the Hidden Attractor Chaos System

1
College of Computer and Information Engineering, Henan Normal University, Xinxiang 453007, China
2
Economics and Management School, Wuhan University, Wuhan 430072, China
*
Author to whom correspondence should be addressed.
Entropy 2020, 22(6), 640; https://doi.org/10.3390/e22060640
Submission received: 26 May 2020 / Revised: 4 June 2020 / Accepted: 5 June 2020 / Published: 9 June 2020
(This article belongs to the Section Multidisciplinary Applications)

Abstract

:
Aiming at the problems of small key space, low security of encryption structure, and easy to crack existing image encryption algorithms combining chaotic system and DNA sequence, this paper proposes an image encryption algorithm based on a hidden attractor chaotic system and shuffling algorithm. Firstly, the chaotic sequence generated by the hidden attractor chaotic system is used to encrypt the image. The shuffling algorithm is used to scramble the image, and finally, the DNA sequence operation is used to diffuse the pixel value of the image. Experimental results show that the key space of the scheme reaches 2327 and is very sensitive to keys. The histogram of encrypted images is evenly distributed. The correlation coefficient of adjacent pixels is close to 0. The entropy values of encrypted images are all close to eight and the unified average change intensity (UACI) value and number of pixel changing rate (NPCR) value are close to ideal values. All-white and all-black image experiments meet the requirements. Experimental results show that the encryption scheme in this paper can effectively resist exhaustive attacks, statistical attacks, differential cryptanalysis, known plaintext and selected plaintext attacks, and noise attacks. The above research results show that the system has better encryption performance, and the proposed scheme is useful and practical in communication and can be applied to the field of image encryption.

1. Introduction

In recent years, the wide application of the internet and the popularization of digital information have brought significant changes to people’s life and learning styles [1]. Digital information has been widely used in online teaching, medical imaging, secure communication, and other fields due to its characteristics of easy access, convenient replication, and rapid dissemination, which greatly enriches people’s lives. The digital image is a form of digital information and has been widely used. However, using the openness and sharing of the network to intercept information has seriously harmed the interests of all parties in communication. Therefore, it is increasingly important to design practical and reliable encryption schemes. The encryption of digital images has received extensive attention.
Digital images are characterized by strong pixel correlation, large capacity, and high redundancy. Therefore, the computationally intensive and time-consuming DES and AES algorithms [2,3] are not suitable for real-time image transmission. Thus, technologies based on chaotic systems [4,5,6,7,8,9,10,11,12,13,14,15], deoxyribonucleic acid (DNA) sequences [14,15], quantum walk [16,17,18,19], cellular automata [20,21], and the like are widely applied to image encryption algorithms [22]. On the other hand, chaotic systems are especially suitable for image encryption because of their sensitivity to initial conditions and control parameters, the density of periodic points, and topological transitivity. In recent years, a large number of image encryption algorithms based on chaos have been proposed one after the other [4,5,6,7,8,9,10,11,12,13,14,15]. Yin Q et al. proposed a more sensitive chaotic image encryption scheme based on permutation and diffusion structure, using breadth-first search and dynamic diffusion to enhance security and sensitivity [13]. Chai Xiuli et al. used a hyperchaotic memory system, cellular automata, and DNA sequence operation to encrypt images [15]. Self-excited attractors generate chaotic systems in general encryption algorithms. The attraction domain of the self-excited attractor is related to the equilibrium point. Common chaotic systems can be restored by reconstructing the attractor, which will significantly reduce the security of the encryption algorithm [23].
In contrast, the attraction domain of hidden attractor chaotic systems does not intersect with any neighborhood of the equilibrium point. Attackers cannot restore the chaotic system by reconstructing the attractor, and the security is much better than that of ordinary chaotic systems [23,24,25,26,27,28,29,30]. Due to less research on hidden attractor chaotic system, hidden attractor chaotic system is seldom applied to the image encryption scheme. Cavusoglu et al. [31] focused on the process of generating the hidden attractor chaotic system and did not introduce too much the effect of image encryption. In this paper, a large number of experiments are carried out to fully demonstrate the encryption effect of the encryption algorithm based on the hidden attractor chaotic system, and the security and performance of the algorithm are analyzed.
To resist attackers’ statistical attacks on the encryption system, C.E. Shannon proposed two necessary steps for designing the encryption system: diffusion and confusion. Hence, the image encryption algorithm usually includes these two steps. Many researchers have proposed many practical permutation algorithms such as Arnold transform, Hilbert curve, and baker transform [32,33,34,35]. However, these classical methods also have many problems, such as obvious periodicity and weak randomness. Shuffle algorithm has good randomness, but Erdal Guvenoglu et al. applied the Knuth–Durstenfeld algorithm to generate keys instead of confusion [36]. In this paper, the performance of the algorithm is analyzed through a large number of experiments, and the experimental results sufficiently prove that while guaranteeing the image scrambling effect, the Knuth–Durstenfeld shuffling algorithm can reduce the time complexity and space complexity of the algorithm.
Based on the above analysis, this paper proposes a novel hybrid secure image encryption based on a shuffling algorithm and hidden attractor chaotic system. The advantages of the algorithm proposed in this paper are as follows:
  • The hidden attractor chaotic system is applied to image encryption. The hidden attractor chaotic system is easily affected by initial values and parameters, and the attacker cannot reconstruct the attractor to crack the chaotic system.
  • The Knuth–Durstenfeld shuffling algorithm is used in the shuffling process. Knuth–Durstenfeld algorithm has lower space complexity and time complexity.
  • In the encryption process, the key consists of the chaotic sequence of the chaotic system and the hash sequence of the image, which ensures the security of transmission.
The structure of the paper is as follows: The second section introduces the preliminary work and methods. The third section introduces the proposed image encryption scheme. The fourth section, experimental results, and analysis. The fifth section, safety, and performance analysis. The sixth section is the conclusion of the thesis.

2. Preliminary Work and Methods

2.1. Chaotic System

In this paper, we generalized the chaotic system from the generalized non-diffusion Lorenz equation and obtained the four-dimensional implicit attractor hyperchaotic system. The system has the characteristics of double scroll chaos, periodic dynamics, and quasi-periodic.

2.1.1. Hidden Attractor Hyperchaotic System

The system is a four-dimensional continuous chaotic system, and its equation is shown in formula (1):
{ x ˙ = a ( y x ) y ˙ = x z c y k h z ˙ = b + x y h ˙ = m y
In the system (1), the system can show different characteristics under different conditions, as shown in Table 1. When the system is a hidden attractor chaotic system, are the real parameters of the system.
According to the hyperchaos theory, for a four-dimensional hyperchaos system, at least two Lyapunov exponents are positive. Different initial conditions and parameters will make the system in different states. Specific examples are shown in Table 1.
The tiny change of the initial state of the system results in the different trajectories, and the experiment takes parameter c as an example. The influence of parameter c on the system is shown in Table 2. Tests show that chaotic systems show different dynamic characteristics with the change of parameters.
Figure 1 shows the attractor phase diagram of a hidden attractor hyperchaotic system. The hidden attractor hyperchaotic system has no equilibrium point. There is no equilibrium point in the hyperchaotic system. The shape of the hidden hyperchaotic attractor is a double scroll, similar to the butterfly shape of the Chen hyperchaotic attractor.

2.1.2. System Randomness Test

To prove that the sequence generated by the chaotic system meets the requirements of image encryption, fits the characteristics of random sequence, and meets the required random standard [37], according to the SP800-22 standard formulated by the National Institute of Standards (NIST) and TESTU01 statistical test suite, the output sequence of the implicit attractor chaotic system is tested for randomness. The output of the hidden attractor chaotic system in this paper adopts a double-precision data format, and its output is converted into a binary stream for testing. Table 3 shows the NIST test results. All p-values of the NIST test are evenly distributed in the interval, the average passing rate of the test is about 99.1%, and the passing rate is within the acceptable range.
Due to the small amount of evaluation data used in NIST test standards, the required number of iterations of data evaluation is not large enough when chaotic sequences generated by chaotic systems are used for randomness detection, which will not expose the degradation of chaotic dynamics and achieve the purpose of effective testing. Therefore, the TESTU01 statistical characteristic test, which is stricter than the NIST test, will be adopted in this paper. The difference from NIST testing is that the amount of test data is larger, and the number of test items is more. The software library includes seven built-in module kits, namely, the primary test kit SmallCrush, the intermediate test kit Crush, the advanced test kit BigCrush, Alphabit, Rabbit, PseudoDIEHARD and FIPS-140-2. The specific testing method of TESTU01 is to test the generated chaotic sequence with the primary suite, then with the intermediate suite, then with the advanced suite, and finally with the four suites BigCrush, Alphabit, Rabbit, PseudoDIEHARD. The next test is necessary only if each test passes. The test results of chaotic sequences generated by the algorithm proposed in this paper are shown in Table 4 below, the chaotic sequence generated by the algorithm can pass the extremely strict TESTU01 test.
The test results show that the pseudo-random sequence generated by the hidden attractor chaotic system has successfully passed two tests and meets the requirements. Therefore, the hidden attractor chaotic system can be applied to image encryption.

2.2. Shuffle Algorithm

The shuffle algorithm includes drawing cards, changing cards, and insert cards. Shuffle algorithm is to break up the original array so that a certain number of the original array can appear with equal probability at each position in the broken array, wherein drawing cards and changing cards correspond to the Fisher–Yates Shuffle algorithm and the Knuth–Durstenfeld Shuffle algorithm, respectively [38].

2.2.1. Fisher-Yates Shuffle Algorithm

The main steps of the Fisher–Yates shuffling algorithm are to randomly take a number that has not been made before from the original array to the new array. The algorithm has a time complexity of O(n × n) and a space complexity of O(n). The specific steps are as follows:
  • The length of the original array is known to be n, and the original array and the new array are initialized.
  • Assuming that there are still k arrays that have not been processed, and the value range of the array is [0, k], randomly generate a number P between the value ranges, and take out the value P from the array.
  • Repeat step 2 until all the numbers are taken and record them.
  • The number sequence recorded in step 3 is a scrambled number sequence.

2.2.2. Knuth–Durstenfeld Shuffling Algorithm

The number has interacted on the original array of Fisher–Yates shuffling algorithm, which is Knuth–Durstenfeld shuffling algorithm. The time complexity and space complexity of the algorithm is reduced to O(n) and O(1), respectively. The specific steps are as follows:
  • Create a new array with a size of n, generate a random number x1 with a value range of [0, n − 1], and use x1 as the subscript of the random output value arr.
  • Exchange the suffix value of arr with the element of subscript x1.
  • Generate a random number x2 with a value range of [0, n − 2], and use x2 as the subscript of the output value arr, that is, the second random number.
  • Replace the penultimate value of arr with the element of subscript x2.
  • Process the array according to the rules of steps 1 to 4 until m values are generated.

2.3. DNA Sequence Operation

DNA (deoxyribonucleic acid) has the advantages of large-scale parallel, ample storage, and ultra-low power consumption. In recent years, it has been applied to the chaotic image encryption system [39].

2.3.1. DNA Coding

DNA encoding is the process of binary mapping values to DNA bases. DNA composition contains four bases, of which A and T, C and G are complementary pairs, respectively. According to Watson Crick’s basic rule, 4! = 24, but only 8 of the 24 methods met the standard. Table 5 lists eight systems that satisfy the complementarity rule.
Suppose that the value of a pixel point of an image is decimal 114, the binary form is 01110010, DNA coding is carried out according to mode 1, sequence “CTAG” is obtained, the sequence is decoded according to mode 5, the binary number “00011011” is obtained, and conversion to decimal is “27”. It can be seen that through simple DNA encoding and decoding, a value can change significantly, making the digital image encryption effect better.

2.3.2. DNA Algorithm

The DNA operation is based on the rule that every two binary values correspond to one DNA base. There are eight kinds of qualified DNA coding methods, and each method has a set of algorithms, so each commonly used algorithm corresponds to 8 different DNA algorithms. Use DNA exclusive OR (XOR) operation defined by DNA encoding mode 0 is shown in Table 6. If “ATGC” and “AGTC” are XOR, the result is “ACCA”.

3. The Proposed Encryption Scheme

The algorithm uses a chaotic system to generate a chaotic sequence and selects a chaotic sequence according to the hash value of the original image. Then the original image is scrambling by shuffling algorithm. Finally, the encrypted image is obtained by diffusing the image through DNA operation. The encryption algorithm in this paper not only encrypts the image safely but also ensures excellent encryption performance.

3.1. Encryption Process

The process of the encryption algorithm proposed in this paper is shown in Figure 2.
Assuming the size of the original grayscale image P is M × N , the specific encryption process of the algorithm is as follows:
  • The hidden attractor chaotic system used in this paper is in double-scroll hyperchaos. The key of the algorithm consists of the hash value of the original image, the parameters and initial values of the chaotic system, wherein the parameters and initial values of the system are shown in the second row in Table 1.
  • To avoid the transient effect of the system, the chaotic system uses the key of step 1 to iterate 1000 times. To enhance the sensitivity of the encryption system, the generated chaotic sequence is divided into six different groups: A 1 ( x , y ) , A 2 ( x , z ) , A 3 ( x , h ) , A 4 ( y , z ) , A 5 ( y , h ) , A 6 ( z , h ) .
  • Two variables hash and index are defined. According to the Secure Hash Algorithm 256 (SHA-256) algorithm, the hash value of the original image is obtained, and the hexadecimal hash value is converted into decimal number in turn and added to get the hash value. The specific method is shown in formula (2).
    i n d e x = mod ( h a s h , 6 ) + 1
    Mod (hash,6) indicates the remainder of the hash divided by 6. R1 and R2, respectively, represent vectors Ai(1) and Ai(2).
    W h e n   i n d e x = n t h e n   A i = A n , i = n { i = 1 , R 1 = X , R 2 = Y i = 2 , R 1 = X , R 2 = Z i = 3 , R 1 = X , R 2 = H i = 4 , R 1 = Y , R 2 = Z i = 5 , R 1 = Y , R 2 = H i = 6 , R 1 = Z , R 2 = H
    To achieve the scrambling effect, R1 and R2 are processed, as shown in Formula (4), and the processed results are set as vector Row and vector Column, respectively:
    V e c t o r ( i ) = mod ( f l o o r ( ( R n ( i ) + 100 ) × 10 10 ) , M × N i + 1 ) + 1 , ( n = 1 , 2 )
  • According to the shuffling algorithm, the chaotic sequence R1 processed in step 3 is used to scramble the original image, and the original image matrix P is modified into a one-dimensional vector P_Row. The scrambling process is shown in Formula (5).
    P _ R o w ( R 1 ( i ) ) = P _ R o w ( M × N i + 1 )
    The processed vector P_Row is transposed and expanded to obtain a one-dimensional vector P_Column.
  • According to formula (5), through the chaotic sequence R2 pair P_Column to scramble. The processed sequence P_Column is re-converted into a matrix p of size M×N. P1 is calculated by the formula (6) to obtain the variable temp.
    t e m p = mod ( j = 1 M × N P 1 , 256 )
  • The parameters and initial values of the chaotic system are set to the values in step 1, and the parameters and initial values of the chaotic system are iterated 1000 + MN times, thus avoiding the transient effect of the chaotic system, and their values are stored in the initial value sequences of the chaotic system, which are chaotic.
  • Through the formula (7) pair of four chaotic sequences, each element operates to obtain four-vectors Rx, Ry, Rz, and Rh.
    { R x ( i ) = mod ( X 1 ( i ) 10 10 , 8 ) + 1 R y ( i ) = mod ( Y 1 ( i ) 10 10 , 8 ) + 1 R z ( i ) = mod ( Z 1 ( i ) 10 10 , 8 ) + 1 R h ( i ) = mod ( H 1 ( i ) 10 10 , 256 )
    i represents the i-th element of four chaotic sequences, i [ 1 , M × N ] , the matrix P1 is converted into a one-dimensional vector E(i).
  • According to the coding rules of Rz(i) and Ry(i), R(i), and E(i) are respectively DNA coded to obtain DR(i) and DE(i), NE(i) is obtained by XOR of DR(i) and DE(i).
  • According to the rules corresponding to Rx(i), NE(i) is decoded to obtain DNE(i). CNE(i) is obtained by XOR of DNE(i) and temp.
  • Loop through steps 8 and 9 until all elements of the original image are encrypted. Then the vector is transformed into a M × N matrix to obtain an encrypted image.

3.2. Decryption Process

The decryption process is the inverse of the encryption process. Before decrypting the image, the same key as the encryption process must be used. Since the image is in the hiding stage, the decryption sequence is generated in the same way as the encryption phase. Then decrypt the diffusion step, and finally decrypt the replacement step to decrypt the image.
The process of the decryption algorithm proposed in this paper is shown in Figure 3.

4. Experimental Results and Analysis

To verify the algorithm proposed in this paper, using MATLAB R2018a software simulates the algorithm. The primary hardware environment of the experimental equipment is the processor: Intel Core i5-6300HQ CPU @ 2.30 GHz; Installation memory: 8 GB; Operating system: Windows10 home Chinese version. The experimental parameters of the “encryption and decryption process” are shown in Table 7. The “Lena” standard 512 × 512 image is taken as an example, as shown in Figure 4.
The experimental results are shown in Figure 4. By looking at Figure 4b, it can be seen that the encrypted image is an unordered image without displaying any clear text information. There is no relationship between the original image and the encrypted image. The structural similarity between the original image and the encrypted image is analyzed, and the similarity is 1. The results show that the encryption and decryption effect of the algorithm is good.

5. Security Analysis

In the fifth section, the security of the encryption algorithm is evaluated through key space analysis, key sensitivity analysis, histogram analysis, correlation coefficient analysis of adjacent pixels, information entropy analysis, differential cryptanalysis analysis, noise attack analysis, known plaintext, and selective plaintext attack analysis.

5.1. Key Space Analysis

According to references, the key space of the algorithm must be large enough to resist various violent attacks, and the key space should be at least 2100 ≈ 1030 [40,41]. In this algorithm, the key space consists of three parts: SHA-256 function value of the original image, the initial values of the chaotic system, and parameters of a chaotic system. The ideal key space of SHA-256 is 2128, if the accuracy of four parameters x0, y0, z0, and h0 of a chaotic system is set to 10−15, the key space can reach 1060, and the key space of the algorithm can reach 2327, much larger than 2100 [42], Table 8 shows the key space comparison between the algorithm in this paper, and that in reference [43,44,45,46,47], the algorithm in this paper has a larger key space, it is generally believed that the algorithm’s key length up to 128 bit is secure. The algorithm’s key space has reached a security standard. From literature [48], it can be seen that the algorithm in this paper can resist all kinds of exhaustive attacks.

5.2. Key Sensitivity Analysis

A good encryption algorithm should be susceptible to keys. In the process of decrypting encrypted images, minor changes in the key will also cause the recovery of encrypted images to fail. The sensitivity of the algorithm key is analyzed to verify the security of the encryption algorithm. In the experiment, x0 in the original key is modified to x0 + 10−15, and uses the modified key set to decrypt the encrypted image.
In Table 9, the first column is the original image, the second column is the encrypted image, the third column is the decrypted image using the wrong key, and the fourth column is the decrypted image using the correct key. When the error rate of a single key reaches the order of 10−15, the original image cannot be obtained. When any one of the multiple keys is changed, the original image cannot be decrypted, as shown in Table 10. Experimental results show that the encryption algorithm is highly sensitive to keys.

5.3. Statistical Attack Analysis

5.3.1. Histogram Analysis

The encryption system must make the encrypted image have a uniform histogram to resist statistical attacks because the image histogram represents the distribution of pixel intensity values in the image. Histograms of the original image and encrypted image are shown in Table 11. The abscissa of the histogram is the gray level, and the ordinate is the frequency of occurrence of the gray level.
The experimental results show that the pixels of the encrypted image obey the uniform distribution, that is to say, the frequency of each pixel value after encryption is very close, and the attacker will not be able to obtain the statistical law of the encrypted image. To verify whether the histogram of the encrypted image obeys uniform distribution, the encrypted image is quantized by chi-square test, and the formula is as shown [49];
χ 2 = i = 1 n ( f i f e ) 2 f e
fe is the expected value of the pixel point, fi is the value of the 1st-pixel point, n is the total number of pixels, and the significance level is 0.05.
In addition to the Chi-square test, this paper calculates the variance of the histogram to evaluate the uniformity of encrypted image distribution. The smaller the variance is, the closer it is, the higher the consistency of the encrypted image is, the better the uniformity of the encrypted image is. In this paper, we calculate two variances of the same original image encrypted by two different sets of keys. The variance formula is as follows:
D ( z ) = 1 n 2 i = 1 n j = 1 n 1 2 ( z i z j ) 2
Z = { Z n } , ( n = 1 , 2 , , 256 ) , Z is the frequency at which gray values occur. In the experiment, the “Lena” image is used for the experiment. The variance of the histogram of the original image is 33,860. Only one key in the two key groups is different. The variance value of the encrypted image is about 250, indicating that the average value of the number of pixels in each gray value is about 13 pixels. Experiments show that the histogram of the encrypted image is very uniform and will not provide any information to the attacker.
Table 11 shows the experimental results of the chi-square test. As can be seen from Table 11, the pixel distribution of the encrypted image follows a uniform distribution, and it is difficult for the attacker to crack the algorithm by analyzing the histogram of the encrypted image. The encrypted image will not provide any useful information to the attacker. The encryption algorithm proposed in this paper can effectively protect images from statistical attacks.

5.3.2. Correlation Analysis

Adjacent pixels of the original image has a strong correlation in all directions. Only when the correlation coefficient of adjacent pixels of the encrypted image is low enough, the image processed by the encryption algorithm resist statistical attacks. Adjacent pixels are randomly selected from each direction of the original image, and the encrypted image, correlation coefficients are calculated. The correlation between adjacent pixels in the original image and the encrypted image is analyzed. The calculation formula of the correlation coefficient rxy is shown in formula (10):
r x y = cov ( x , y ) D ( x ) D ( y )
cov ( x , y ) = 1 N i = 1 N ( x i E ( x ) ) ( y i E ( y ) )
E ( x ) = 1 N i = 1 N x i
D ( x ) = 1 N i = 1 N ( x i E ( x ) ) 2
In the above formula, N is the total number of pixel points, x and y are gray values of adjacent pixels, E(x) is the average value of the pixel, D(x) is the variance, cov(x, y) is the correlation function, and rxy is the correlation coefficient, the higher the absolute value, the stronger the correlation.
Table 12 shows the pixel correlation coefficients of the original image and the encrypted image in all directions. The correlation coefficients of adjacent pixels in the original image are all close to 1, and the correlation coefficients of encrypted images are all close to 0, which indicates that the original image has a significant correlation between pixels in different directions. Still, the correlation of adjacent pixels is eliminated after encryption algorithm processing.
To more intuitively compare the correlation between adjacent position data values of images before and after encryption, the image “Lena” and its encrypted images are taken as examples. The correlation of their two adjacent pixels in the horizontal, vertical, and diagonal directions are plotted respectively, the abscissa is the data value of the random point position, and the ordinate is the data value of the random point adjacent position, as shown in Figure 5.
In Figure 5a is the horizontal distribution of adjacent pixels before encryption, Figure 5b is the vertical distribution of adjacent pixels before encryption, Figure 5c is the diagonal distribution of adjacent pixels before encryption, Figure 5d is the horizontal distribution of adjacent pixels after encryption, Figure 5e is the vertical distribution of adjacent pixels after encryption, and Figure 5f is the diagonal distribution of adjacent pixels after encryption.
As can be seen from Figure 5, the adjacent pixel points of the original image are continuously distributed, and the adjacent pixel point values of the ciphertext image are randomly distributed. They are distributed all over the two-dimensional space. The ciphertext image eliminates the correlation of the adjacent pixels and masks the data characteristics of the original image.
The experimental results show that the encryption algorithm greatly reduces the pixel correlation of encrypted images, and attackers cannot obtain useful information from encrypted images through statistical attacks. The algorithm in this paper has high security, and statistical attacks cannot crack the encryption algorithm in this paper.

5.3.3. Information Entropy Analysis

There are many indexes to judge the randomness of pixels, of which the information entropy is the most commonly used and essential index, and its specific mathematical definition is shown in Equation (14):
H ( x ) = i = 0 2 N 1 p ( x i ) log 2 p ( x i )
Among them, the proportion of image gray value xi is expressed by (xi), and the gray level of the image is 2N. If the gray level of the image is M, then Hmax = log2M (bit/symbol) has its maximum entropy. When M = 256 = 28, Hmax = 8, the closer the number is to 8, the less likely the attacker is to crack the encrypted image. In the experiment, information entropy was calculated for the ciphertext images of ten test images, comparison with the literature [51], and the results are shown in Table 13.
As can be seen from Table 13, the Shannon entropy of the encrypted image exceeds 7.99, which is very close to the theoretical value of 8, and the entropy value is higher than the literature [51]. Therefore, the encrypted image generated by the encryption algorithm proposed in this paper has good randomness and sufficient security to resist statistical attacks.

5.4. Analysis of Known-Plaintext and Selective-Plaintext Attacks

In the encryption process, the algorithm uses the SHA-256 function, and the key space includes the hash value of the original image, so the diffusion and scrambling process is closely related to the original image. The algorithm is susceptible to slight changes in the original image.
In this paper, we test all black and all white images to analyze whether the experiment will fail the encryption algorithm. The chi-square test results of information entropy, NPCR, UACI, pixel correlation coefficient, and histogram are shown in Table 14. Figure 6 shows the histogram of the original image and encrypted image. The unified average change intensity (UACI) is one of the important analyses of the sensitivity tests. The number of pixel changing rate (NPCR) manifests the possibility of the differential attack by its sensitivity. The typical values of NPCR and UACI are 99.61% and 33.46%, respectively. The calculation formula is as follows:
U A C I = i = 1 M j = 1 N | P 1 ( i , j ) P 2 ( i , j ) | 255 × M × N × 100 %
N P C R = i = 1 M j = 1 N Q ( i , j ) M × N × 100 %
Q ( i , j ) = { 0 , P 1 ( i , j ) = P 2 ( i , j ) 1 , P 1 ( i , j ) P 2 ( i , j )
Table 14 shows that the entropy of encrypted images is more significant than 7.99. The UACI value and the NPCR value approach the theory, the results show that the two images before and after encryption, are entirely different; The correlation coefficients of pixels in three directions are close to 0 and accord with uniform distribution, so useful information cannot be obtained. This algorithm can resist known plaintext attacks and selective plaintext attacks. The experimental results show that the encryption algorithm in this paper cannot be cracked by using all-white and all-black images.

5.5. Differential Attack Analysis

Take the image “5.2.08” as an example [52], compare the image encryption algorithm in this paper with that in literature [53,54], and obtain the average value of UACI and NPCR, as shown in Table 15. To make the encryption algorithm resist the differential attack, we must make the algorithm very sensitive to the original image, and the small changes of the original image can produce significant changes in the encrypted image. There are many evaluation criteria for the anti-differential cryptanalysis ability of the encryption algorithm, which are generally measured by average change intensity (UACI) and pixel change rate (NPCR). UACI and NPCR values of different images are shown in Table 16.
To more intuitively display the influence on the encrypted image when the pixel value at a certain position of the image changes, taking the image “Lena” as the experimental object, Compare the encrypted image after changing the pixel with the encrypted image of the original image, the experimental results are shown in Table 17.
From the above two tables, it can be seen that the encryption scheme is susceptible to the changes in the original image, and UACI and NPCR are close to the theoretical values. Even if the changes in the original image are minimal, two completely different encrypted images can be obtained. Therefore, the algorithm in this paper can effectively resist differential attack.

5.6. Analysis of noise attack

In fact, in the process of image transmission, it is often affected and destroyed by noise, resulting in inevitable errors, which makes it difficult to decrypt. To test the anti-noise performance of the algorithm, different levels of Gaussian noise and salt and pepper noise are added to the ciphertext image to simulate the noise in the transmission process, which is a reasonable assumption derived from the real physical channel. If the encryption system is sensitive to noise, the change of the encrypted image will hinder the image decryption [42]. In Lena’s encrypted image, Gaussian noise with different variance, salt and pepper noise with different intensity are added respectively, and the noise is evenly distributed in the encrypted image.
Figure 7 is a decrypted image in each case. For each image in Figure 7, the correlation coefficient between the decrypted image and the noisy decrypted image is determined by the structural similarity method. The closer the structural similarity coefficient i
s to 1, it is proved that the smaller the error between the decrypted image and the noisy decrypted image is, the stronger the anti-noise ability of the system is. As shown in Table 18, the measurement value of the correlation coefficient between two images proves the robustness of noise. The correlation coefficient is close to 1 and larger than the literature [47]. That is to say, and the decrypted image still retains the whole information of the original image, which verifies the system’s ability of anti-noise attack.

5.7. Analysis of Algorithm Complexity and Performance

In addition to paying attention to security, the encryption algorithm should also consider the operation speed of the algorithm, usually including time complexity and space complexity. The algorithm with low complexity has fast processing speed and can be used for real-time encryption.
The time complexity of the algorithm in this paper depends on key stream generation, permutation operation, and diffusion operation. Let the size of the original image P be m × n. The length of chaotic sequences generated by the system is m × n, and the time complexity is O(m × n). The diffusion part includes DNA encoding and XOR, with a complexity of O(m × n).
Table 19 shows that compared with the algorithms of the References [55,56,57,58,59], the encryption algorithm in this paper has lower time complexity. Spatial complexity is an important index to measure the complexity of algorithms. In this paper, the Knuth–Durstenfeld algorithm is applied to the scrambling process, where the space complexity of the algorithm is O (1), which means that the encryption algorithm does not need more complicated calculations in the scrambling phase. However, many existing encryption schemes [13,15,20] have larger space complexity than O(1) and are less efficient than the algorithm in this paper.
Taking the image “Lena” as an example, the correlation coefficients of adjacent pixels in the horizontal, vertical, and diagonal directions of the encrypted image are calculated, as shown in Table 20. The results prove that the encryption scheme in this paper can achieve the encryption effect of the encryption algorithm in reference [55,56,57,58,59]. The application of the Knuth–Durstenfeld algorithm to scrambling not only ensures the scrambling impact, but also reduces the complexity of the algorithm and improves the efficiency of the algorithm. Moreover, with the increase of image size, the advantages of the algorithm will gradually become obvious.
In Table 20, the correlation coefficient of the encrypted image of the encryption scheme in this paper is less than or close to that of documents [57,60,61,62], which indicates that the shuffling algorithm adopted in this paper can achieve the scrambling effect of other encryption algorithms. The information entropy of encrypted images is larger than that of documents [57,60,61,62] and closer to the theoretical value of 8, which proves that the images encrypted by the encryption scheme in this paper have good randomness. Combined with the above experimental results, the encryption scheme in this paper is superior to that in literature [57,60,61,62].

6. Conclusions

This paper proposes hybrid secure image encryption based on the shuffle algorithm and the hidden attractor chaos system. The hidden attractor chaotic system generates the chaotic sequence required for image encryption. The NIST and TESTU01 tests are carried out on the chaotic sequence generated by the hidden attractor chaotic system, which proves that the hidden attractor chaotic system is suitable for image encryption. Because the shuffling algorithm has good randomness, this paper uses a shuffling algorithm to scramble images. In this paper, the security of the scheme is verified through a large number of experimental analyses: exhaustive attack, statistical attack, differential cryptanalysis, known-plaintext attack and selective plaintext attack, and noise attack. The experimental results show that the scheme is useful and practical in the field of image encryption, but there are still many areas to be explored and improved. The algorithm in this paper is mainly designed for grayscale images, which need to convert data into grayscale images and encrypt them. In the future, the range of encryption algorithm can be expanded to encrypt more image types.

Author Contributions

Conceptualization, X.J.; Data curation, X.J.; Formal analysis, X.D. and H.J.; Methodology, X.J.; Software, X.J. and H.J.; Validation, X.D.; Writing—original draft, X.J.; Writing—review and editing, Y.M. and X.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Acknowledgments

Special funds support this paper from the key scientific research projects of higher education in Henan Province (19B510005, 20B413004) and the national innovation and Entrepreneurship Talent Training Program of Henan Normal University (s201810476032).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Sreeja, C.S.; Misbahuddin, M.; Hashim, N.P. DNA for information security: A Survey on DNA computing and a pseudo DNA method based on central dogma of molecular biology. In Proceedings of the International Conference on Computing and Communication Technologies, Hyderabad, India, 11–13 December 2014; pp. 1–6. [Google Scholar]
  2. FIPS PUB 46-3, Data Encryption Standard (DES). Available online: https://csrc.nist.gov/publications/detail/fips/46/3/archive/1999-10-25 (accessed on 16 January 2020).
  3. FIPS PUB 197, Advanced Encryption Standard. Available online: https://csrc.nist.gov/publications/detail/fips/197/final (accessed on 16 January 2020).
  4. Sun, S. A Novel Hyperchaotic Image Encryption Scheme Based on DNA Encoding, Pixel-Level Scrambling and Bit-Level Scrambling. IEEE Photonics J. 2018, 10, 1–14. [Google Scholar] [CrossRef]
  5. 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. 2016, 76, 15561–15585. [Google Scholar] [CrossRef]
  6. Tsafack, N.; Kengne, J.; Abd-El-Atty, B.; Iliyasu, A.M.; Hirota, K.; Abd EL-Latif, A.A. Design and implementation of a simple dynamical 4-D chaotic circuit with applications in image encryption. Inf. Sci. 2020, 515, 191–217. [Google Scholar] [CrossRef]
  7. Belazi, A.; Abd El-Latif, A.A.; Diaconu, A.-V.; Rhouma, R.; Belghith, S. Chaos-based partial image encryption scheme based on linear fractional and lifting wavelet transforms. Opt. Lasers Eng. 2017, 88, 37–55. [Google Scholar] [CrossRef]
  8. Assad, S.E.; Farajallah, M. A new chaos-based image encryption system. Signal Process. Image Commun. 2015, 41, 144–157. [Google Scholar] [CrossRef]
  9. Wang, X.Y.; Guo, K. A new image alternate encryption algorithm based on chaotic map. Nonlinear Dyn. 2014, 76, 1943–1950. [Google Scholar] [CrossRef]
  10. Zhou, G.; Zhang, D.; Liu, Y.; Yuan, Y.; Liu, Q. A novel image encryption algorithm based on chaos and line map. Neurocomputing 2015, 169, 150–157. [Google Scholar] [CrossRef]
  11. Zhu, H.; Zhang, X.; Yu, H.; Zhao, C.; Zhu, Z. An image encryption algorithm based on compound homogeneous hyper-chaotic system. Nonlinear Dyn. 2017, 89, 61–79. [Google Scholar] [CrossRef]
  12. Cheng, G.F.; Wang, C.H.; Chen, H. A novel color image encryption algorithm based on hyperchaotic system and permutation-diffusion architecture. Int. J. Bifurc. Chaos 2019, 29, 1950115. [Google Scholar] [CrossRef]
  13. Yin, Q.; Wang, C.H. A new chaotic image encryption scheme using Breadth-First search and dynamic diffusion. Int. J. Bifurc. Chaos 2018, 28, 1850047. [Google Scholar] [CrossRef]
  14. Wu, J.H.; Liao, X.F.; Yang, B. Image encryption using 2D hénon-sine map and dna approach. Signal Process. 2018, 153, 11–23. [Google Scholar] [CrossRef]
  15. Chai, X.; Gan, Z.; Yang, K.; Chen, Y.; Liu, X. An image encryption algorithm based on the memristive hyperchaotic system, cellular automata and DNA sequence operations. Signal Process. Image Commun. 2017, 52, 6–19. [Google Scholar] [CrossRef] [Green Version]
  16. Ahmed, A.; El-Latif, A.; Abd-El-Atty, B.; Amin, M.; Iliyasu, A.M. Quantum-inspired cascaded discrete-time quantum walks with induced chaotic dynamics and cryptographic applications. Sci. Rep. 2020, 10, 2322–2335. [Google Scholar]
  17. Abd El-Latif, A.A.; Abd-El-Atty, B.; Mazurczyk, W.; Fung, C.; Venegas-Andraca, S. Secure Data Encryption Based on Quantum Walks for 5G Internet of Things Scenario. IEEE Trans. Netw. Serv. Manag. 2020, 17, 118–131. [Google Scholar] [CrossRef]
  18. Abd El-Latif, A.A.; Abd-El-Atty, B.; Abou-Nassar, E.M.; Venegas-Andraca, S.E. Controlled alternate quantum walks based privacy preserving healthcare images in Internet of Things. Opt. Laser Technol. 2020, 124, 105942. [Google Scholar] [CrossRef]
  19. El-Latif, A.A.A.; Abd-El-Atty, B.; Mazurczyk, W.; Fung, C.; Venegas-Andraca, S.E. Controlled alternate quantum walk-based pseudo-random number generator and its application to quantum color image encryption. Phys. A Stat. Mech. Appl. 2020, 547, 123869. [Google Scholar] [CrossRef]
  20. Ping, P.; Xu, F.; Wang, Z.J. Image encryption based on non-affine and balanced cellular automata. Signal Process. 2014, 105, 419–429. [Google Scholar] [CrossRef]
  21. Hanis, S.; Amutha, R. Double image compression and encryption scheme using logistic mapped convolution and cellular automata. Multimed. Tools Appl. 2017, 77, 6897–6912. [Google Scholar] [CrossRef]
  22. Short, K.M. Steps toward unmasking secure communications. Int. J. Bifurc. Chaos 2014, 04, 959–977. [Google Scholar] [CrossRef]
  23. Zhang, S.; Zeng, Y.; Li, Z.; Wang, M.; Zhang, X.; Chang, D. A novel simple no-equilibrium chaotic system with complex hidden dynamics. Int. J. Dyn. Control 2018, 23, 1–12. [Google Scholar] [CrossRef]
  24. Cang, S.; Li, Y.; Zhang, R.; Wang, Z. Hidden and self-excited coexisting attractors in a lorenz-like system with two equilibrium points. Nonlinear Dyn. 2019, 95, 381–390. [Google Scholar] [CrossRef]
  25. Pham, V.-T.; Volos, C.; Jafari, S.; Kapitaniak, T. Coexistence of hidden chaotic attractors in a novel no-equilibrium system. Nonlinear Dyn. 2017, 87, 2001–2010. [Google Scholar] [CrossRef]
  26. Wei, Z.; Wang, R.; Liu, A. A new finding of the existence of hidden hyperchaotic attrac- tors with no equilibria. Math. Comput. Simul. 2014, 100, 13–23. [Google Scholar] [CrossRef]
  27. Danca, M. Hidden chaotic attractors in fractional-order systems. Nonlinear Dyn. 2018, 89, 1–10. [Google Scholar] [CrossRef] [Green Version]
  28. Pham, V.T.; Jafari, S.; Kapitaniak, T. Constructing a chaotic system with an infinite nNumber of equilibrium points. Int. J. Bifurc. Chaos 2016, 26, 1650225. [Google Scholar] [CrossRef]
  29. Zhou, L.; Wang, C.H.; Zhou, L.L. A novel no-equilibrium hyperchaotic multi-wing system via introducing memristor. Int. J. Circuit Theory Appl. 2018, 46, 84–98. [Google Scholar] [CrossRef]
  30. Zhang, X.; Wang, C.H. Multiscroll hyperchaotic system with hidden attractors and its circuit implementation. Int. J. Bifurc. Chaos 2019, 29, 1950117. [Google Scholar] [CrossRef]
  31. Çavuşoğlu, Ü.; Panahi, S.; Akgül, A.; Jafari, S.; Kaçar, S. A new chaotic system with hidden attractor and its engineering applications: analog circuit realization and image encryption. Analog. Integr. Circuits Process. 2019, 98, 85–99. [Google Scholar] [CrossRef]
  32. Zhou, N.R.; Hua, T.X.; Gong, L.H.; Pei, D.J.; Liao, Q.H. Quantum image encryption based on generalized arnold transform and double random-phase encoding. Quantum Inf. Process. 2015, 14, 1193–1213. [Google Scholar] [CrossRef]
  33. Liu, Z.; Li, S.; Liu, W.; Liu, S. Opto-digital image encryption by using baker mapping and 1-D fractional Fourier transform. Opt. Lasers Eng. 2013, 3, 224–229. [Google Scholar] [CrossRef]
  34. Kumar, M.; Iqbal, A.; Kumar, P. A new RGB image encryption algorithm based on DNA encoding and elliptic curve Diffie-Hellman cryptography. Signal Process. 2016, 125, 187–202. [Google Scholar] [CrossRef]
  35. Chai, X.; Fu, X.; Gan, Z.; Lu, Y.; Chen, Y. A color image cryptosystem based on dynamic DNA encryption and chaos. Signal Process. 2019, 155, 44–62. [Google Scholar] [CrossRef]
  36. Güvenoğlu, E.; Tüysüz, M.A.A. An improvement for Knutt/Durstenfeld algorithm based image encryption. In Proceedings of the 2015 23nd Signal Processing and Communications Applications Conference (SIU), Malatya, Turkey, 16–19 May 2015; pp. 1761–1764. [Google Scholar]
  37. Chen, S.; Cao, S.M.; Zuo, J.Y. Test and Design of Random-Number Generator. Inf. Secur. Commun. Priv. 2012, 12, 103–105. [Google Scholar]
  38. Gao, T.; Chen, Z. Image encryption based on a new total shuing algorithm. Chaos Solitons Fractals 2018, 38, 213–220. [Google Scholar] [CrossRef]
  39. Ayesha, K.; Di, X.; Abbas, S.A. An efficient and noise resistive selective image encryption scheme for gray images based on chaotic maps and DNA complementary rules. Multimed. Tools Appl. 2016, 75, 1–23. [Google Scholar]
  40. Zhang, L.Y.; Li, C.; Wong, K.-W.; Shu, S.; Chen, G. Cryptanalyzing a chaos-based image encryption algorithm using alternate structure. J. Syst. Softw. 2012, 85, 2077–2085. [Google Scholar] [CrossRef] [Green Version]
  41. Zhu, H.G.; Zhang, X.D.; Yu, H.; Zhao, C.; Zhu, Z.L. A novel image encryption scheme using the composite discrete chaotic system. Entropy 2016, 18, 276. [Google Scholar] [CrossRef] [Green Version]
  42. Alvarez, G.; Li, S.J. Some basic cryptographic requirements for chaos-based cryptosystems. Int. J. Bifurc. Chaos 2006, 16, 2129–2151. [Google Scholar] [CrossRef] [Green Version]
  43. Ahmad, J.; Hwang, S.O. A secure image encryption scheme based on chaotic maps and affine transformation. Multimed. Tools Appl. 2016, 75, 13951–13976. [Google Scholar] [CrossRef]
  44. Khan, J.S.; Ahmad, J. Chaos based efficient selective image encryption. Multidim. Syst. Sign. Process. 2019, 30, 943–961. [Google Scholar] [CrossRef]
  45. Hua, Z.; Zhou, Y.; Huang, H. Cosine-Transform-Based Chaotic System for Image Encryption. Inf. Sci. 2018, 480, 403–419. [Google Scholar] [CrossRef]
  46. Hua, Z.; Yi, S.; Zhou, Y. Medical image encryption using high-speed scrambling and pixel adaptive diffusion. Signal Process. 2018, 144, 134–144. [Google Scholar] [CrossRef]
  47. Ismail, S.M.; Said, L.A.; Radwan, A.G.; Madian, A.H.; Abu-ElYazeed, M.F. A novel image encryption system merging fractional-order edge detection and generalized chaotic maps. Signal Process. 2020, 167, 107280. [Google Scholar] [CrossRef]
  48. Wang, X.; Wang, Y.; Zhu, X.; Luo, C. A novel chaotic algorithm for image encryption utilizing one-time pad based on pixel level and DNA level. Opt. Lasers Eng. 2020, 125, 105851. [Google Scholar] [CrossRef]
  49. Wang, M.; Wang, X.; Zhang, Y.; Gao, Z. A novel chaotic encryption scheme based on image segmentation and multiple diffusion models. Opt. Laser Technol. 2018, 108, 558–573. [Google Scholar] [CrossRef]
  50. Belazi, A.; Abd El-Latif, A.A.; Belghith, S. A novel image encryption scheme based on substitution-permutation network and chaos. Signal Process. 2016, 128, 155–170. [Google Scholar] [CrossRef]
  51. Alawida, M.; Samsudin, A.; The, J.S.; Alkhawaldeh, R.S. A new hybrid digital chaotic system with applications in image encryption. Signal Process. 2019, 160, 45–58. [Google Scholar] [CrossRef]
  52. USC-SIPI Image Database. Available online: http://sipi.usc.edu/database/database.php (accessed on 17 January 2020).
  53. Yadollahi, M.; Enayatifar, R.; Nematzadeh, H.; Lee, M.; Choi, J.-Y. A novel image security technique based on nucleic acid concepts. J. Inf. Secur. Appl. 2020, 53, 102505. [Google Scholar] [CrossRef]
  54. Stoyanov, B.; Kordov, K. Image Encryption Using Chebyshev Map and Rotation Equation. Entropy 2015, 17, 2117–2139. [Google Scholar] [CrossRef]
  55. Xu, L.; Li, Z.; Li, J.; Hua, W. A novel bit-level image encryption algorithm based on chaotic maps. Opt. Lasers Eng. 2012, 78, 17–25. [Google Scholar] [CrossRef]
  56. Zhou, Y.C.; Cao, W.J.; Chen, C.L.P. Image encryption using binary bitplane. Signal Process. 2014, 100, 197–207. [Google Scholar] [CrossRef]
  57. Pak, C.; Huang, L. A new color image encryption using combination of the 1d chaotic map. Signal Process. 2017, 138, 129–137. [Google Scholar] [CrossRef]
  58. Teng, L.; Wang, X. A bit-level image encryption algorithm based on spatiotemporal chaotic system and self-adaptive. Opt. Commun. 2012, 285, 4048–4054. [Google Scholar] [CrossRef]
  59. Liu, D.; Zhang, W.; Yu, H.; Zhu, Z. An image encryption scheme using self-adaptive selective permutation and inter-intra-block feedback diffusion. Signal Process. 2018, 151, 130–143. [Google Scholar] [CrossRef]
  60. Liu, W.H.; Sun, K.H.; Zhu, C.X. A fast image encryption algorithm based on chaotic map. Opt. Lasers Eng. 2016, 84, 26–36. [Google Scholar] [CrossRef]
  61. Wang, X.Y.; Zhang, H.L. A color image encryption with heterogeneous bit-permutation and correlated chaos. Opt. Commun. 2015, 342, 51–60. [Google Scholar] [CrossRef]
  62. Xu, L.; Gou, X.; Li, Z.; Li, J. A novel chaotic image encryption algorithm using block scrambling and dynamic index-based diffusion. Opt. Lasers Eng. 2017, 91, 41–52. [Google Scholar] [CrossRef]
Figure 1. The hidden attractor hyperchaotic system. (a) x-y-z; (b) y-z-h; (c) x-z-h; (d) x-y-h.
Figure 1. The hidden attractor hyperchaotic system. (a) x-y-z; (b) y-z-h; (c) x-z-h; (d) x-y-h.
Entropy 22 00640 g001
Figure 2. The encryption processes.
Figure 2. The encryption processes.
Entropy 22 00640 g002
Figure 3. The decryption processes.
Figure 3. The decryption processes.
Entropy 22 00640 g003
Figure 4. Encryption and decryption effect; (a) Original image of Lena; (b) Encrypted image of Lena; and (c) Decrypted image of Lena.
Figure 4. Encryption and decryption effect; (a) Original image of Lena; (b) Encrypted image of Lena; and (c) Decrypted image of Lena.
Entropy 22 00640 g004
Figure 5. Correlation between adjacent pixels of the "Lena" image before and after encryption.
Figure 5. Correlation between adjacent pixels of the "Lena" image before and after encryption.
Entropy 22 00640 g005aEntropy 22 00640 g005b
Figure 6. Experimental results of all-white and all-black images; (a) All-white image; (b) Encrypt image; (c) Encrypted image histogram; (d) All-black image; (e) Encrypt image; and (f) Encrypted image histogram.
Figure 6. Experimental results of all-white and all-black images; (a) All-white image; (b) Encrypt image; (c) Encrypted image histogram; (d) All-black image; (e) Encrypt image; and (f) Encrypted image histogram.
Entropy 22 00640 g006aEntropy 22 00640 g006b
Figure 7. (ac) Decrypted image with Gaussian noise; (df) Decrypted image with Salt and pepper noise.
Figure 7. (ac) Decrypted image with Gaussian noise; (df) Decrypted image with Salt and pepper noise.
Entropy 22 00640 g007aEntropy 22 00640 g007b
Table 1. Influence of initial value and parameters on system.
Table 1. Influence of initial value and parameters on system.
Initial ValueParametersSystem State
( 0.2 , 0.1 , 0.75 , 2 ) a = 10 , b = 25 , c = 2.5 , m = 1 , k = 1 Double-scroll hyperchaos
( 0.2 , 0.8 , 0.75 , 2 ) a = 10 , b = 25 , c = 4.66 , m = 1 , k = 1 Chaos
( 0.2 , 0.8 , 0.75 , 2 ) a = 10 , b = 25 , c = 2 , m = 1 , k = 1 Periodic orbits
( 0.2 , 0.1 , 0.75 , 2 ) a = 10 , b = 25 , c = 4.66 , m = 1 , k = 1 Hyper-chaos
Table 2. The influence of parameter change on the system.
Table 2. The influence of parameter change on the system.
Value Range of cSystem State
( 7.45 , 4.96 ) ( 4.94 , 4.68 ) ( 4.66 , 4.12 ) ( 0.46 , 0.24 ) Chaos
( 4.96 , 4.94 ) ( 4.68 , 4.66 ) ( 4.12 , 0.46 ) [ 1.84 , 1.88 ] Hyper-chaos
( 0.24 , 0.154 ) Chaos or quasi-periodic orbits or Periodic orbits
[ 0.154 , 1.84 ) [ 1.88 , 2.84 ] Periodic
[ 2.84 , 8.54 ] Quasi-periodic
( 8.54 , 9 ) Chaos
Table 3. Random test results.
Table 3. Random test results.
Randomness Test p-ValueResult
Frequency test0.756086Pass
Block Frequency test0.965353Pass
Runs test0.756043Pass
Longest Run of One’s test0.445124Pass
Matrix Rank test0.152412Pass
Discrete Fourier Transform test0.756312Pass
Non-Overlapping Template Matchings test0.232635Pass
Overlapping Template Matchings test0.953691Pass
Universal test0.970868Pass
Linear Complexity test0.851026Pass
Serial testp_value10.179212Pass
p_value20.432451Pass
Approximate Entropy test0.631205Pass
Cumulative Sums testForward0.078968Pass
Reverse0.083989Pass
Random Excursions test0.221075Pass
Random Excursions Variant test0.436787Pass
Table 4. Test results of TESTU01.
Table 4. Test results of TESTU01.
Test SuiteEvaluation of Data VolumeTotal TestsTest Result
SmallCrush6Gb15Pass
Crush973Gb144Pass
BigCrush10Tb160Pass
Alphabet953Mb17Pass
Rabbit953Mb40Pass
PseudoDIEHAR5Gb126Pass
FIPS-140-219Kb16Pass
Table 5. DNA encoding rules.
Table 5. DNA encoding rules.
01234567
A0000010110101111
T1111101001010000
G0110001100110110
C1001110011001001
Table 6. DNA XOR operation.
Table 6. DNA XOR operation.
ATGC
AATGC
TTACG
GGCAT
CCGTA
Table 7. Experimental parameters of encryption and decryption process.
Table 7. Experimental parameters of encryption and decryption process.
ItemsValue
Parameters a = 10 , b = 25 , c = 4.6 , m = 1 , k = 25
Initial values ( 0.2 , 0.1 , 0.75 , 2 )
256-bit key (binary format)1110110111010001101110111010100000001011100011100110000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
Table 8. Key space comparison of different algorithms.
Table 8. Key space comparison of different algorithms.
AlgorithmThe Algorithm in This PaperRef. [43]Ref. [44]Ref. [45]Ref. [46]Ref. [47]
Key space232722992299225622562319
Table 9. Results of key sensitivity analysis experiment 1.
Table 9. Results of key sensitivity analysis experiment 1.
Image NameImageEncrypted ImageError Key Decryption ImageDecryption Image
Lena Entropy 22 00640 i001 Entropy 22 00640 i002 Entropy 22 00640 i003 Entropy 22 00640 i004
5.2.08 Entropy 22 00640 i005 Entropy 22 00640 i006 Entropy 22 00640 i007 Entropy 22 00640 i008
5.2.09 Entropy 22 00640 i009 Entropy 22 00640 i010 Entropy 22 00640 i011 Entropy 22 00640 i012
5.2.10 Entropy 22 00640 i013 Entropy 22 00640 i014 Entropy 22 00640 i015 Entropy 22 00640 i016
7.1.02 Entropy 22 00640 i017 Entropy 22 00640 i018 Entropy 22 00640 i019 Entropy 22 00640 i020
7.1.03 Entropy 22 00640 i021 Entropy 22 00640 i022 Entropy 22 00640 i023 Entropy 22 00640 i024
7.1.05 Entropy 22 00640 i025 Entropy 22 00640 i026 Entropy 22 00640 i027 Entropy 22 00640 i028
7.1.08 Entropy 22 00640 i029 Entropy 22 00640 i030 Entropy 22 00640 i031 Entropy 22 00640 i032
7.1.10 Entropy 22 00640 i033 Entropy 22 00640 i034 Entropy 22 00640 i035 Entropy 22 00640 i036
boat Entropy 22 00640 i037 Entropy 22 00640 i038 Entropy 22 00640 i039 Entropy 22 00640 i040
Table 10. Results of key sensitivity analysis experiment 2.
Table 10. Results of key sensitivity analysis experiment 2.
Image NameEncrypted ImageError Key Decryption Image(x0 + 10−15)Error Key Decryption Image(y0 + 10−15)Error Key Decryption Image(z0 + 10−15)Error Key Decryption Image(h0 + 10−15)Decryption Image
Lena Entropy 22 00640 i041 Entropy 22 00640 i042 Entropy 22 00640 i043 Entropy 22 00640 i044 Entropy 22 00640 i045 Entropy 22 00640 i046
5.2.08 Entropy 22 00640 i047 Entropy 22 00640 i048 Entropy 22 00640 i049 Entropy 22 00640 i050 Entropy 22 00640 i051 Entropy 22 00640 i052
Table 11. Histogram of the original image and encrypted image.
Table 11. Histogram of the original image and encrypted image.
Image NameHistogram of the Original ImageHistogram of the Encrypted Imageχ2p-Values
Lena Entropy 22 00640 i053 Entropy 22 00640 i054278.79920.7896
5.2.08 Entropy 22 00640 i055 Entropy 22 00640 i056252.65310.5832
5.2.09 Entropy 22 00640 i057 Entropy 22 00640 i058259.71230.6816
5.2.10 Entropy 22 00640 i059 Entropy 22 00640 i060264.52170.7124
7.1.02 Entropy 22 00640 i061 Entropy 22 00640 i062269.16320.6195
7.1.03 Entropy 22 00640 i063 Entropy 22 00640 i064251.63280.5913
7.1.05 Entropy 22 00640 i065 Entropy 22 00640 i066272.63740.7351
7.1.08 Entropy 22 00640 i067 Entropy 22 00640 i068262.68910.6237
7.1.10 Entropy 22 00640 i069 Entropy 22 00640 i070275.86270.5769
boat Entropy 22 00640 i071 Entropy 22 00640 i072254.19510.6365
Table 12. The correlation coefficient of adjacent pixels in the image.
Table 12. The correlation coefficient of adjacent pixels in the image.
ImageDirectionOriginal ImageEncrypted Image
The Algorithm in This PaperRef. [50]
LenaHorizontal0.9755−0.0045−0.0048
Vertical0.9850−0.0103−0.0112
Diagonal0.96260.0022−0.0045
5.2.08Horizontal0.9446−0.0071−0.0251
Vertical0.88560.0002−0.0213
Diagonal0.8387−0.0045−0.0232
5.2.09Horizontal0.90770.0012−0.0014
Vertical0.8594−0.0023−0.0056
Diagonal0.81100.0117−0.0049
5.2.10Horizontal0.9380−0.0093−0.0190
Vertical0.92500.0167−0.0182
Diagonal0.89100.0120−0.0079
7.1.02Horizontal0.9338−0.0062−0.0002
Vertical0.9439−0.0036−0.0090
Diagonal0.88010.0193−0.0066
7.1.03Horizontal0.9480−0.0036−0.0202
Vertical0.9339−0.0173−0.0200
Diagonal0.90540.0012−0.0013
7.1.05Horizontal0.94230.0083−0.0086
Vertical0.9089−0.0094−0.0103
Diagonal0.89260.0142−0.0079
7.1.08Horizontal0.9572−0.0150−0.0195
Vertical0.92610.0002−0.0127
Diagonal0.92060.0119−0.0124
7.1.10Horizontal0.96340.0197−0.0201
Vertical0.9483−0.01990.0135
Diagonal0.92880.0169−0.0182
boatHorizontal0.9415−0.0130−0.0100
Vertical0.96960.0111−0.0124
Diagonal0.9209−0.0182−0.0185
Table 13. The result of information entropy.
Table 13. The result of information entropy.
Image NameThe Entropy of the Original ImageThe Entropy of the Encrypted ImageRef. [51]
Lena7.44557.99837.9086
5.2.087.20107.99867.9025
5.2.096.99407.99917.9027
5.2.105.70567.99897.9022
7.1.024.00457.99927.8936
7.1.035.49577.99947.9007
7.1.056.56327.99827.9022
7.1.085.05347.99857.9024
7.1.105.90887.99937.9027
boat7.19147.99867.9025
Table 14. Experimental results of all-white and all-black images.
Table 14. Experimental results of all-white and all-black images.
ImagesFull White ImageFull Black Image
Entropies7.99717.9972
UACI0.33480.3337
NPCR0.99590.9960
Correlation coefficientsHorizontal0.00510.0035
Vertical0.00260.0060
Diagonal0.00200.0028
χ2263.4922249.8672
p-values0.65590.4210
Table 15. Comparison of unified average change intensity (UACI) value and number of pixel changing rate (NPCR) of different algorithms.
Table 15. Comparison of unified average change intensity (UACI) value and number of pixel changing rate (NPCR) of different algorithms.
The Algorithm in This PaperRef. [53]Ref. [54]
UACI33.60%33.05%33.53%
NPCR99.61%99.52%99.60%
Table 16. UACI and NPCR values of images.
Table 16. UACI and NPCR values of images.
Image NameUACINPCR
Lena33.51%99.63%
5.2.0833.60%99.61%
5.2.0933.81%99.59%
5.2.1033.75%99.63%
7.1.0233.62%99.62%
7.1.0333.54%99.56%
7.1.0533.86%99.62%
7.1.0833.53%99.60%
7.1.1033.64%99.59%
boat33.79%99.58%
Table 17. UACI and NPCR when a pixel value changes.
Table 17. UACI and NPCR when a pixel value changes.
Pixel LocationUACINPCR
(1,1)33.49%99.64%
(511,511)33.48%99.60%
(1,511)33.51%99.66%
(511,1)33.49%99.60%
(256,256)33.44%99.62%
Table 18. The structural similarity between decrypted image and decrypted image with noise.
Table 18. The structural similarity between decrypted image and decrypted image with noise.
The Algorithm in This PaperRef. [47]
Gaussian noisevar = 0.00010.95180.9076
var = 0.00050.84100.8266
var = 0.0010.78490.7667
S&P noised = 0.0010.99750.9973
d = 0.0050.98710.9862
d = 0.010.97200.9683
Table 19. Comparison of time complexity.
Table 19. Comparison of time complexity.
AlgorithmEncryption Process
ScramblingDiffusion
Algorithm in this paper O ( m × n ) O ( m × n )
Ref. [40] O ( 4 m × n ) O ( 4 m × n )
Ref. [41] O ( 8 m × n × log ( 8 m × n ) ) Same as this paper
Ref. [42]Same as Ref. [41]Same as this paper
Ref. [43] O ( m × n × log ( m × n ) ) + O ( 4 m × n × log ( 4 m × n ) ) O ( 4 m × n )
Ref. [44] O ( 2 m × n ) + O ( 3 m × n ) Same as this paper
Table 20. Performance comparison of algorithms.
Table 20. Performance comparison of algorithms.
AlgorithmEntropyCorrelation Coefficients
HorizontalVerticalDiagonal
Algorithm in this paper7.9983−0.0045−0.01030.0022
Ref. [55]7.9974−0.02300.00190.0034
Ref. [56]-0.0102−0.0053−0.0161
Ref. [57]-−0.0038−0.00260.0017
Ref. [58]7.99740.0241-0.01940.0243
Ref. [59]7.99730.0000−0.00110.0074
Ref. [60]7.99760.0030−0.0024−0.0034
Ref. [61]7.9974−0.0098−0.0050−0.0013
Ref. [55]7.9974−0.02300.0019−0.0034
Ref. [62]7.9973−0.02260.00410.0368

Share and Cite

MDPI and ACS Style

Jin, X.; Duan, X.; Jin, H.; Ma, Y. A Novel Hybrid Secure Image Encryption Based on the Shuffle Algorithm and the Hidden Attractor Chaos System. Entropy 2020, 22, 640. https://doi.org/10.3390/e22060640

AMA Style

Jin X, Duan X, Jin H, Ma Y. A Novel Hybrid Secure Image Encryption Based on the Shuffle Algorithm and the Hidden Attractor Chaos System. Entropy. 2020; 22(6):640. https://doi.org/10.3390/e22060640

Chicago/Turabian Style

Jin, Xin, Xintao Duan, Hang Jin, and Yuanyuan Ma. 2020. "A Novel Hybrid Secure Image Encryption Based on the Shuffle Algorithm and the Hidden Attractor Chaos System" Entropy 22, no. 6: 640. https://doi.org/10.3390/e22060640

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop