Research on Image Encryption with Multi-Level Keys Based on a Six-Dimensional Memristive Chaotic System
Xiaobin Zhang, Yaxuan Chai, Shitao Xiang, Shaozhen Li

TL;DR
This paper introduces a new image encryption method using a six-dimensional memristive chaotic system for enhanced security.
Contribution
The novelty lies in combining a six-dimensional memristive chaotic system with multi-level dynamic keys for image encryption.
Findings
The encrypted image achieves high information entropy (7.9979) and strong resistance to conventional attacks.
The encryption process is efficient, taking only 0.342 seconds for a 256 × 256 image.
The algorithm shows high NPCR (99.6111%) and UACI (33.4643%) values, indicating strong diffusion properties.
Abstract
To address the security of digital images, this paper proposes a novel image encryption algorithm based on a six-dimensional memristive chaotic system. First, the algorithm uses the Secure Hash Algorithm 256 (SHA-256) to generate a hash value, from which the initial dynamic key is derived. Next, it integrates Zigzag scrambling, chaotic index scrambling, and diffusion operations to form an encryption scheme with multiple rounds of scrambling and diffusion. In this framework, after each encryption operation, a part of the dynamic key is changed according to the input parameters, and the six-dimensional memristive chaotic system continues iterating to generate the pseudo-random sequence for the next operation. Finally, the proposed algorithm is evaluated using indicators including information entropy, histograms, the Number of Pixels Change Rate (NPCR) and Unified Average Changing…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14
Figure 15- —Doctoral Startup Fund of Wuhan Polytechnic University
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsChaos-based Image/Signal Encryption · Advanced Technologies and Applied Computing · Digital Media Forensic Detection
1. Introduction
With the rapid development of Internet communication technologies, the volume of multimedia files such as images and videos which carry critical network information has dramatically increased. Digital images have emerged as the most widely used medium for information transmission due to their advantages, including large information capacity, low storage requirements, and easy transmission. Many of these images may contain privacy information belonging to individuals or teams, and their frequent transmission may expose users to privacy breach risks. Therefore, digital image security has attracted considerable attention [1,2,3,4].
To protect the information security of digital images, researchers have been actively exploring various secure and reliable image encryption algorithms. The “scrambling-diffusion” mechanism derived from Shannon’s theory is a typical structure for image encryption [5]. The combination of scrambling and diffusion can not only alter pixel positions but also convert changes in a single pixel into global or local modifications of the image, thereby altering the image information [6,7]. However, encryption schemes solely relying on the basic scrambling-diffusion combination exhibit low security performance. Therefore, chaotic systems are widely applied in digital image encryption due to their characteristics such as extreme sensitivity to initial conditions and system parameters, unpredictable trajectories, and strong pseudorandom output sequences [8].
Researchers investigate the methods for generating chaotic sequences using secret keys and chaotic systems, and thereby achieve image encryption [9,10]. For example, Fridrich [11] firstly designed an encryption scheme based on a two-dimensional chaotic system, addressing the issue of insufficient encryption security at the plaintext and key levels after the discretization of chaotic maps. Gao X [12] designed a novel image encryption algorithm by combining two one-dimensional chaotic maps, resolving the flaws in encryption schemes of chaotic cryptosystems caused by the adoption of one-dimensional chaotic maps lacking complex dynamic behaviors. However, the studies show that low-dimensional chaotic systems (e.g., those used in Refs. [11,12]) have simple structures and small key spaces, making them vulnerable to brute-force attacks and thus difficult to meet the requirements of high security encryption [13,14]. In addition, the security of chaotic image encryption depends on the chaotic system; if the employed chaotic system exhibits poor performance, the image encryption effect will be unsatisfactory.
To enhance the performance of chaotic systems, numerous researchers have begun to design and investigate high-dimensional chaotic systems using the multidimensional extension method and spatial expansion method [15,16]. Among various approaches, memristors exhibit prominent nonlinearity, low power consumption, and scalability, making them highly suitable for constructing high-dimensional hyperchaotic systems with more complex dynamics [17]. For example, Itoh et al. [18] designed several nonlinear oscillator models by combining a memristor model and Chua’s chaotic system, and pioneeringly established memristor-based chaotic systems. Chen M et al. [19] designed a four-dimensional memristive chaotic system by combining a memristor model and a chaotic system, addressing the issue of reduced application security caused by the existence of equilibrium points in the system. Wang Y F et al. [20] integrated two cubic nonlinear flux-controlled memristor models and a four-dimensional chaotic system, designing a novel six-dimensional memristive chaotic system and presenting a synchronization control method. This work resolved the synchronization control challenge of high-dimensional memristive chaotic systems. Then, an increasing number of scholars have proposed digital image encryption algorithms based on high-dimensional memristive chaos due to their excellent performance. For instance, Sha et al. [21] designed a novel image encryption scheme by combining a four-dimensional memristive chaotic system and an alignment-confusion-permutation structure, resolving the issue of insufficient encryption strength in simple encryption systems. In addition, Yang D et al. [22] designed a novel image encryption scheme by combining a four-dimensional memristive chaotic system and compressed sensing technology, addressing the problem of poor image reconstruction quality. Nonetheless, it is worth noting that high-dimensional chaotic systems are highly complex and generate chaotic sequences with higher randomness, which reduces encryption efficiency when they are applied in the field of image encryption (e.g., Refs. [21,22]). Additionally, researchers usually use pseudorandom sequences generated from a single set of initial values in different operations of the encryption scheme (e.g., Ref. [21]). This means that once attackers obtain the initial parameters, they can acquire the sequences used for encryption in each operation, thereby increasing the probability of image decryption.
From above, the work of this paper is paid more attention the following three aspects. First, we utilize a six-dimensional memristive chaotic system with more complex dynamic behaviors and a larger key space to enhance the security of the algorithm. Second, we effectively integrate the hierarchical key stream mechanism with Zigzag transform and improved chaotic index scrambling, and thus design an image encryption algorithm with a scrambling-diffusion process; this mechanism ensures that the sequences used in each step are generated by the chaotic system based on different initial values. Meanwhile, we simplify the encryption scheme to improve its encryption efficiency on the premise of ensuring the security of the algorithm. Finally, we evaluate the security and efficiency of the image encryption algorithm using a series of metrics.
2. Basic Theory
2.1. Six-Dimensional Memristive Chaotic System
The mathematical model of the six-dimensional memristive chaotic system [20] is presented as follows:
where the expressions of the two flux-controlled memristor models are and , respectively, a, b, c, d, m, n, p, q are system parameters, and x, y, z, w, v, u are system state variables; , , , , , and denote the derivatives of the system state variables with respect to time t. When the system parameters are set as a = 6, b = 2, c = 0.1, d = 2, m = −1, n = −0.2, p = 1 and q = 0.1, and the system initial values are given by , the Lyapunov exponents for the system are calculated as follows: , , , , , and . According to the Lyapunov dimension calculation equation:
In Equation (2), it is L = 5, = 5.0039. The dimension is fractional, and there are three positive and three negative Lyapunov exponents, thus indicating that this six-dimensional memristive chaotic system is a hyperchaotic system. The phase trajectory diagram, shown in Figure 1, reveals that its dynamical behavior is highly complex and unpredictable, and thus fulfills the requirements of an encryption algorithm.
2.2. Zigzag Scrambling
The Zigzag algorithm starts from the first position (1, 1) of the matrix in Figure 2a and traverses the element values in the matrix sequentially along the unique Zigzag path, as shown in Figure 2b. The scanned values are arranged into a one-dimensional array and then recombined into a matrix, as shown in Figure 2c. The Zigzag scrambling algorithm can rapidly and effectively change the original image pixel positions, thus being widely applied in digital image encryption [23]. We employ the Zigzag scrambling algorithm for initial scrambling of the image. Additionally, considering that a single Zigzag scrambling operation yields suboptimal results for image boundaries during processing, we fix the number of Zigzag scrambling iterations at 8.
2.3. Chaotic Index Scrambling
The algorithm sorts the chaotic sequence in ascending order to generate a new vector and returns its index numbers. Next, it converts the image matrix into a one-dimensional vector using row-major ordering, performs pixel scrambling based on the index numbers to produce a new one-dimensional vector, and finally reconstructs this new vector back into an image matrix.
As shown in Figure 3, the algorithm sorts the vector in ascending order to yield , from which indices are derived. These indices record the original position of each element within the new vector. Subsequently, all elements of the one-dimensional vector derived from the image matrix are rearranged via the index-based mapping, ultimately generating the scrambled image. In this study, we utilize sequences v and u to execute this scrambling process.
3. Encryption Algorithm
3.1. Image Encryption Algorithm Design
Step 1: Read the plaintext image , with M and N denoting the length and width of the image, respectively (Figure 4).
Step 2: Take the input key of the algorithm as system parameters a, b, c, d, m, n, p, and q, and generate the system initial values based on the image hash value. Taking the Cameraman image as an example, its hash value H is 5bc100741511b04c58ef132109b9c6-d8c89d1355aa7b7eeabfb5bee1a9970d56. This is then divided into 8-bit blocks in decimal format, which are expressed as follows:
The initial dynamic key is constructed using to , as shown in the following equation:
where , , , , , and denote the initial values. Next, this algorithm generates four random numbers to within the interval using to , as shown in the following equation:
Step 3: Set the system parameters as , , , , , , and . The system (1) performs iterations. When generating the pseudorandom sequences, the algorithm discards the first sum(r) iterations results to eliminate transient effects, thereby yielding pseudorandom sequences { } and { } of length . Matrices and are then derived from these sequences using Equation (6).
where ; ; and and are given by Equation (7):
Step 4: The plaintext image undergoes the first diffusion with matrices and using Equation (8), yielding the image matrix :
where the expressions for and are given as follows:
Step 5: The pixels of matrix are rearranged via the Zigzag algorithm introduced in Section 2.2, yielding the initially scrambled image .
Step 6: The second-level dynamic key and are computed using Equation (10):
Similarly, the system iterates to eliminate transient effects and yields pseudorandom sequences { } and { } of length . Matrices and are then derived from these sequences using Equation (11).
where ; ; and and are given by Equation (12):
Step 7: The image matrix undergoes the second diffusion with matrices and using Equation (13), yielding the image :
where the expressions for and are given as follows:
Step 8: Similar to Step 6, the third-level dynamic key is computed using Equation (15), which yields pseudorandom sequences { } and { } of length .
Step 9: The pixels of matrix are rearranged via the chaotic index scrambling algorithm introduced in Section 2.3, with the sequence vector given by , yielding the encrypted image .
All encryption operations in the proposed encryption algorithm are reversible; consequently, the decryption algorithm corresponds to the inverse process of the encryption algorithm.
3.2. Experimental Results of Encryption Algorithm
The test images include two sets of standard grayscale images: one set with a resolution of 256 × 256 pixels, including Cameraman, Peppers, Baboon, and Boat; and the other set with a resolution of 512 × 512 pixels, featuring the same image content. The experimental environment is a Windows 11 operating system with an Intel^®^ Core (TM) i5-9300H CPU (2.40 GHz), 8 GB of RAM, and MATLAB R2020a. The encrypted and decrypted images from the simulations are presented in Figure 5, where column (a) shows original images, column (b) encrypted images, and column (c) decrypted images. The results show that the proposed algorithm effectively conceals the information of the plaintext image after encryption, and the decrypted image is identical to the plaintext image, thereby demonstrating the effectiveness and feasibility of the designed encryption algorithm.
4. Security Analysis
4.1. Key Space Analysis
The key space denotes the set of all potential keys for an encryption algorithm. Generally, an encryption algorithm can resist the brute-force attacks when its key space exceeds 2^100^ [24]. The key of the proposed algorithm comprises system parameters ( ), initial dynamic key ( , , , , , ), and secondary and tertiary dynamic keys ( , , ). Since the precision of , , and is 1 × 10^−16^, while that of , , , , and is 1 × 10^−15^, the key space size of the proposed algorithm exceeds . This size is far greater than the theoretical threshold of 2^100^, confirming that the proposed algorithm can effectively withstand exhaustive attacks.
4.2. Key Sensitivity Analysis
Key sensitivity is one of the critical factors for evaluating the security of image encryption algorithms. First, we encrypted the Cameraman image using the original key, yielding a fixed encrypted image. Next, taking , , and as examples, we introduced slight modifications to the key: 1 × 10^−15^, 1 × 10^−15^, and 1 × 10^−16^. Finally, while keeping the other input keys unchanged, we input each fine-tuned key, respectively. The resulting decrypted images are shown in Figure 6. The results demonstrate that images decrypted with the modified keys fail to recover the plaintext information, which confirms that the proposed algorithm exhibits strong key sensitivity.
4.3. Histogram Analysis
Histogram analysis is a critical method for assessing the resistance of an encryption algorithm to statistical analysis. Generally, the more uniform the pixel histogram of an image, the stronger its ability to withstand statistical analysis attacks. We perform quantitative analysis on the histogram using Equation (16):
where denotes the total number of pixels in the image, represents the count of pixels with a pixel value of , and ϵ [0, 255]. Figure 7 presents the histograms of the original, decrypted, and encrypted images. The experimental results demonstrate that the ciphertext image exhibits a uniform pixel distribution, which differs significantly from that of the original image.
As shown in Table 1, the proposed encryption algorithm substantially reduces the statistic of the encrypted image. For each of the eight test images, the algorithm decreases the statistic of their corresponding ciphertext images by over 99.16% compared to the original images. These results confirm that the proposed algorithm can effectively resist statistical attacks.
4.4. Correlation Analysis
Pixel correlation describes the similarity between adjacent pixels. Generally, in plaintext images, adjacent pixels show high correlation in the vertical, horizontal, and diagonal directions. The equation [25] for calculating the correlation coefficient is as follows:
where is the covariance of and ; is the correlation coefficient; and are the variances of and , respectively; and are the observed values of and at pixel ; and are the mathematical expectations of and , respectively; and is the number of pixels.
Correlation comprises positive and negative correlation. If the adjacent pixels are strongly correlated, the correlation coefficient will be close to ±1. Conversely, the coefficient approaching 0 indicates no correlation. Using Cameraman, Peppers, Baboon, and Boat as test images, we randomly selected 5000 pixel pairs from the original and encrypted versions of each image, performed correlation tests, and calculated the correlation coefficients for all directions. In Figure 8, columns (a), (b), and (c) correspond to the adjacent pixel correlation plots of the plaintext images in each direction, while columns (d), (e), and (f) correspond to those of the ciphertext images. As shown in the figure, the pixel distribution in the ciphertext image is more uniform, which means the distribution of adjacent pixels is more random.
Table 2 lists the correlation coefficients of the test images in the horizontal, vertical, and diagonal directions, while Table 3 shows a comparison of the correlation coefficients between the proposed algorithm and those from other literature. The results demonstrate that the average of the absolute values of the correlation coefficients is smaller than the corresponding values of other algorithms, indicating that the algorithm effectively breaks the adjacent pixel correlation in plaintext images.
4.5. Information Entropy Analysis
In image encryption, information entropy is a critical metric for assessing the complexity and randomness of an image [28]. The closer the information entropy of a ciphertext is to the ideal value of 8, the higher the uncertainty of the image is. The information entropy values of the image before and after encryption were calculated separately using Equation (18).
where is the grayscale value of image pixels, denotes the probability of occurring in the image, and is the grayscale level. Table 4 shows the information entropy results of the proposed algorithm, while Table 5 presents the comparison results of the experimental image entropy with those from other literature. The results demonstrate that the information entropy of images encrypted by the proposed algorithm is closer to the ideal value, meaning the encrypted images are more resistant to attacks.
4.6. Differential Attack
The ability to resist differential attacks is typically a critical metric for evaluating the plaintext sensitivity of an algorithm. Plaintext sensitivity means that when the pixel at a certain position in a plaintext image changes, the corresponding ciphertext image should undergo significant changes compared to the original ciphertext image. This change is measured using the Number of Pixels Change Rate (NPCR) and the Unified Average Changing Intensity (UACI). The equation for calculating NPCR and UACI are as follows:
Where and denote the row and column counts of an original image, respectively. and represent the encrypted images corresponding to a plaintext image before and after a random pixel value change, respectively. For 256-level grayscale images, the ideal values of NPCR and UACI are 99.6094% and 33.4635% [33]. In each test, we randomly selected one or multiple pixel positions, incremented their pixel values by 1, repeated the experiment 100 times, and then calculated the average. Table 6 presents the differential attack resistance analysis results of the proposed algorithm when one pixel and five pixels are fine-tuned, while Table 7 shows the comparison results of the Cameraman image’s performance with those from other literature. The results indicate that the measured NPCR and UACI of the proposed algorithm are closer to the ideal values, demonstrating that the algorithm is highly sensitive to plaintext images and can effectively resist differential attacks.
4.7. Anti-Noise Capability Analysis
During image transmission, images may be contaminated by noise, which may render them undecryptable. To ensure the robustness of an image encryption algorithm, it should possess the capability to resist noise attacks [36]. To test the noise resistance of the algorithm, we added salt-and-pepper noise with intensities of 0.05, 0.1, 0.2, and 0.3 to the experimental ciphertext image, respectively, then performed decryption for each case. Figure 9 shows the decrypted results after introducing salt-and-pepper noise of different proportions to the ciphertext. From the simulations, even after noise attacks on the ciphertext, key information remains relatively clear in the decrypted image. This demonstrates that the proposed algorithm exhibits strong robustness, thereby ensuring images can tolerate a certain level of noise contamination during transmission.
To better evaluate and compare the noise attack resistance of the algorithm, we conducted a quantitative analysis by calculating the peak signal-to-noise ratio (PSNR), whose calculation formula is as follows:
where and stand for the width and height of the image, respectively. denotes the pixel value at position in the plain image and represents the pixel value at the same position in the decrypted image. A higher PSNR indicates less distortion between the original image and the decrypted image, demonstrating that the algorithm exhibits stronger robustness against noise. Table 8 shows the experimental results, which indicate that the proposed algorithm exhibits superior PSNR performance compared with other algorithms, demonstrating that the algorithm achieves effectiveness in resisting noise attacks.
4.8. Cropping Attack Analysis
During image transmission, data loss may occasionally occur, preventing the retrieval of accurate original image information after decryption. To ensure the robustness of an image encryption algorithm, it must resist cropping attacks. To test the ability of the proposed algorithm to withstand data loss, we cropped the Cameraman ciphertext image at ratios of 1/8, 1/4, and 1/2, respectively, then performed decryption. Figure 10 shows the decrypted images after cropping the ciphertext at these different ratios. From the simulation results, when the ciphertext suffers 1/8 or 1/4 data loss, key image information remains clearly visible in the decrypted result; with 1/2 data loss, while most original image information is unrecoverable post-decryption, the general outline of the image is still distinguishable. Furthermore, Table 9 shows the PSNR values between the decrypted images and the original images after cropping the ciphertexts of the experimental images at different ratios; the results indicate that the proposed algorithm exhibits excellent PSNR performance. This demonstrates that the proposed algorithm exhibits strong robustness, enabling it to tolerate a certain amount of data loss during image transmission.
4.9. Algorithm Efficiency Analysis
In practical applications, image encryption algorithms demand high efficiency. Table 10 shows the encryption times of all experimental images. Additionally, we compared the encryption time of the images with results from other literature. It can be observed that our proposed algorithm has a shorter encryption time than those in the literature [35,40,41]. This indicates the proposed algorithm not only enhances encryption security but also maintains favorable encryption efficiency.
4.10. Chosen-Plaintext Attack Analysis
The ability to resist chosen-plaintext attacks is an important indicator for measuring an image encryption algorithm. We use the Formula (24) to verify whether the proposed algorithm is resistant to chosen-plaintext attacks [42]. If the obtained image results demonstrate that this formula does not hold, it indicates that the algorithm has a good ability to resist chosen-plaintext attacks.
where and represent the plaintext images, and and are the ciphertext images.
We used 256 × 256 grayscale images Baboon, Peppers, and Boat. As shown in Figure 11, the XOR results between any two plaintext images are inconsistent with the corresponding results of ciphertext images, indicating that Equation (24) does not hold. In addition, a 256-bit hash value is generated after the image is processed by the hash function. Even if there is only one bit difference in the original image, the generated hash value will be completely different. Meanwhile, the initial values of the chaotic system are determined by the plaintext, and the algorithm applies the pseudorandom sequences generated by the system in the encryption process, making the algorithm highly sensitive to the original image. Thus, small changes in the original pixel values will trigger an avalanche effect, and there are no equivalent keys in the proposed algorithm.
Table 11 shows that after the XOR operation between any two ciphertext images, the information entropy of the resulting image remains close to the ideal value, and its pixel correlation coefficients approach 0. This indicates that the image exhibits high randomness, and attackers cannot obtain any identifiable information from the resulting image. Thus, the proposed algorithm can effectively resist chosen-plaintext attacks.
5. Conclusions
This study proposes an image encryption algorithm based on a six-dimensional memristive chaotic system, Zigzag scrambling, and improved chaotic index scrambling. We use plaintext-independent system parameters as input keys and associate the generation of sequences with the plaintext. Meanwhile, we adopt a hierarchical key method to enhance the security of the algorithm. This scheme has application value in scenarios such as image transmission and privacy protection. Experimental analysis results show that compared with existing studies, the proposed algorithm exhibits excellent performance in key space, key sensitivity, information entropy, and encryption efficiency. Additionally, it can resist common attacks, including statistical, differential, noise, cropping, and chosen-plaintext attacks. Given the diverse requirements across different scenarios in cryptography for practical applications, future work will investigate the performance of the algorithm on color images. Additionally, while ensuring the security of the algorithm, we will optimize encryption efficiency to achieve further improvements.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Ma X. Wang Z. Wang C. An image encryption algorithm based on tabu search and hyperchaos Int. J. Bifurc. Chaos 202434245017010.1142/S 0218127424501700 · doi ↗
- 2El-den B.M. Raslan W.A. Abdullah A.A. Even symmetric chaotic and skewed maps as a technique in video encryption EURASIP J. Adv. Signal Process.202320234010.1186/s 13634-023-01003-4 · doi ↗
- 3Talhaoui M.Z. Wang X. Talhaoui A. A new one-dimensional chaotic map and its application in a novel permutation-less image encryption scheme Vis. Comput.2021371757176810.1007/s 00371-020-01936-z · doi ↗
- 4Liu W.C. Digital image encryption technology and its security analysis J. Sci. Technol. Innov.202018104105
- 5Han X. Li G. Dynamic cat transformation and chaotic mapping image encryption algorithm Comput. Eng. Des.20204123812387
- 6Xu J. Liu K. Huang Q. Li Q. Huang L. A plaintext-related and ciphertext feedback mechanism for medical image encryption based on a new one-dimensional chaotic system Phys. Scr.20249912522010.1088/1402-4896/ad 8bfc · doi ↗
- 7Shafique A. Ahmed F. Image Encryption Using Dynamic S-Box Substitution in the Wavelet Domain Wirel. Pers. Commun.20201152243226810.1007/s 11277-020-07680-w · doi ↗
- 8Li M. Wang M. Fan H. An K. Liu G. A novel plaintext-related chaotic image encryption scheme with no additional plaintext information Chaos Solitons Fractals 202215811198910.1016/j.chaos.2022.111989 · doi ↗
