Abstract
As information technology evolves rapidly, image data is exposed to growing risks of security breaches and privacy leaks during transmission and storage. Therefore, image encryption has attracted significant attention as an effective protection measure. Nevertheless, most chaos-driven image encryption schemes suffer from inferior chaotic randomness, making them prone to cryptanalytic cracking in practice. To solve this problem, a new image encryption scheme is proposed by integrating the fireworks algorithm with a convolution operation. First, the original image is permuted via the Arnold transform and an improved permutation strategy. Then, the classical Logistic map is iterated to generate an initial pseudo-random sequence, which is further optimized by the fireworks algorithm. Finally, a reversible convolution operation is integrated with a bit-level diffusion mechanism to achieve image encryption. Experimental results confirm that the proposed scheme exhibits superior performance in terms of statistical analysis, robustness analysis, and image-quality assessment, and it possesses remarkable security against various cryptanalytic attacks.
1. Introduction
With the continuous advancement of digitization, communication modes are no longer limited to traditional carriers such as letters and telephones. Images, owing to their rich information content and convenience in transmission and storage, have become an important medium for data interaction. However, image data usually contain sensitive information during network transmission and sharing, including personal privacy, transaction security, military confidential information, and national security [1]. If unauthorized users access, steal, or tamper with image data arbitrarily, severe consequences will ensue. Therefore, how to effectively guarantee the security and privacy of image data has become a current research hotspot. As an effective solution to the above problem, image encryption generally involves two steps: scrambling and diffusion. Scrambling restructures the spatial distribution of image pixels, while diffusion suppresses the correlation of adjacent pixels through pixel value adjustment to conceal the original image information [2]. Existing image encryption research mainly focuses on the generation of random chaotic sequences and the structural design of encryption algorithms [3]. Cryptography and chaos theory exhibit intrinsic structural similarities, which facilitates the application of chaos theory to image encryption, particularly for generating pseudo-random sequences. The application of chaotic systems in digital image encryption can be traced back to Fridrich’s work in 1998, where chaotic key streams were generated for pixel perturbation [4]. Since then, people have continuously explored the applications of chaos theory to image encryption. Alaklabi et al. used the Logistic map to generate random sequences for image scrambling and diffusion [5]. Meanwhile, they proposed an E-Chirp Z-Transform to tackle the limitation that the chaotic trajectories generated by the 1D Logistic map are susceptible to prediction. Unfortunately, this method inevitably leads to a decline in encryption efficiency. Furthermore, Tu et al. proposed an image encryption scheme by combining the 2D Logistic map with DNA sequences [6]. The pseudo-randomness of chaotic sequences can be enhanced by raising the dimension. Chaotic sequences combined with DNA sequences were introduced into the Feistel encryption architecture. Although the key space was sufficiently large, the encryption process was relatively complicated. To reduce this complexity, Yang et al. constructed an image compression and encryption scheme by virtue of integrating a hyper-chaotic system with BP neural networks, thereby improving the transmission efficiency [7]. However, the encryption algorithm mainly relies on the hyper-chaotic system to generate pseudo-random sequences, resulting in strong reliance on chaotic systems and stringent performance requirements for such chaotic systems. Wang et al. combined a logarithmic Logistic map with fractional Fourier transform to encrypt images [8]. This method broadens the search range, enhances the sensitivity of algorithm parameters, enriches the structure of the algorithm, and improves the security performance. Nevertheless, this algorithm suffers from high computational complexity. Ye et al. designed a multi-image encryption and hiding scheme using a novel 3D coupled chaotic system [9]. The scheme employs a 3D chaotic system and cross-plane operations for image encryption. Embedding multiple encrypted images inevitably changes the pixel values of carrier images, resulting in the degradation of image quality. In addition, there are many typical image encryption schemes based on compressed sensing [10,11,12,13,14], frequency domain transform [15,16,17,18,19,20], optics [21,22,23,24], cellular automata [25,26,27], and other methods with chaotic systems. Nonetheless, few studies have investigated image encryption algorithms that are constructed from chaotic systems and the fireworks algorithm. The fireworks algorithm (FWA) possesses excellent global optimization capability and is widely applied to tackle various optimization problems. FWA is mainly composed of four parts, i.e., the explosion operator, the variation operator, the mapping principles, and the selection strategy. Apart from the selection strategy, the other three components need random numbers for firework-explosion calculations. Therefore, the Euclidean distances among firework individuals, explosion sparks, and the variant sparks exhibit high randomness. Meanwhile, FWA features explosiveness, diversity, and fast convergence [28,29].
In this paper, an image encryption algorithm is developed by combining FWA with convolution operations. The pseudo-random sequence generated by the 1D Logistic map is divided into several parts and then fed into FWA to generate a new pseudo-random sequence. This approach not only inherits the high computational efficiency of low-dimensional chaotic systems, but also avoids the risk of secret key cracking. Furthermore, it effectively enhances the randomness of the generated sequence. In addition, a keypad-based image scrambling method is proposed, which imparts higher randomness and complexity to the encryption process and increases the difficulty of illegal cryptanalysis. Subsequently, one part of the generated pseudo-random sequence is used for target image diffusion in convolution operations, while the other part is applied to bit-level diffusion. Finally, experimental results demonstrate that the proposed algorithm achieves excellent performance in many aspects, such as grayscale histogram distribution, information entropy, encryption quality evaluation, and signal-to-noise ratio analysis. Thus, it exhibits overall satisfactory security and practicality.
2. Related Knowledge
2.1. Logistic Map
The classical 1D logistic map is defined as [30]:
where and are the sequence values of chaos, and is the control factor ranging from 0 to 4. The system falls into a chaotic state when . The range of the initial value is (0, 1). Current low-dimensional chaos-based image encryption methods suffer from several drawbacks, including fixed parameter settings, insufficient key space, and low complexity [31]. To effectively enhance the security performance of the image encryption algorithms and optimize their encryption structure, the fireworks algorithm (FWA) is adopted in this paper. After configuring parameters including the number of fireworks, the number of variant sparks, and the radius of the explosion, the sparks generated by the explosion are regarded as new fireworks for subsequent iterative explosions. The Euclidean distances between explosion-generated sparks are applied as pseudo-random numbers. The pseudo-random numbers controlling FWA are generated by the 1D Logistic map, which compensates for its insufficient randomness.
2.2. Fireworks Algorithm
The fireworks algorithm (FWA) [32], proposed by Tan in 2010, is mainly applied to optimization problems. By initializing the number and positions of fireworks with different explosion radii, sparks at different distances are generated. This explosion mechanism randomly scatters sparks across the area surrounding the initial firework. Superior fireworks are allocated more search resources with a smaller explosion range, while inferior ones are assigned fewer resources within a larger explosion range. Hence, superior fireworks perform effective local search in their neighboring regions to seek the optimal solution [33]. FWA consists of three core components: the explosion operator for generating explosion sparks, the mutation operator for producing Gaussian mutation sparks, and the selection strategy for determining the next generation of fireworks.
- (1)
- Explosion operator
Firstly, a certain number of fireworks are initialized, and the fitness value of each firework’s position is calculated. A smaller fitness value indicates better performance and generates more sparks after explosion, which facilitates local search. Conversely, fewer resources are obtained from the explosion, leading to ordinary local-search capability. The explosion radius and the number of sparks Si for each firework are calculated as
where denotes the minimum fitness value of the N current fireworks, denotes the function of the fitness value for the firework, and denotes the maximum fitness value of the N current fireworks. is a constant used to adjust the explosion radius, is a constant that regulates the number of sparks, and is a tiny constant preventing the denominator from being 0.
To avoid generating excessive sparks, the sparks boundary constraint denoted by is adopted:
where and are constants, and round denotes the rounding function.
- (2)
- Mutation operators
The mutation operator generates mutation sparks by first selecting one firework from the population, and then choosing certain dimensions of the firework for mutation. For a firework of k dimensions, the mutation operation is performed as
where e stands for a random value derived from the chaotic system.
To prevent the spark region from expanding outward during explosions, the range of sparks is constrained as follows:
where denotes the complementation operation, and , are the upper and lower bounds of the -dimensional solution space, respectively.
- (3)
- Selection strategy
After the fireworks explode, explosion sparks and mutated sparks are generated. Several sparks are selected as new fireworks for subsequent iterations, and these selected individuals form the set K. The Euclidean distance between each selected spark is written as
where R() represents the sum of distances from the selected firework to all remaining individuals in the set K. When sparks are densely clustered around a given spark, its selection probability decreases. The corresponding probability is
2.3. Fireworks Algorithm Controlled by the Logistic Map
For the given chaotic parameters, the 1D Logistic map is iterated to generate a random sequence. The previous 5000 entries are discarded to obtain the sequence . Divide into six sequences, namely and , which are then taken as the input of FWA. The computational procedure of FWA is shown in Algorithm 1. The main parameters of FWA include the initial number of fireworks N, the dimension D, the fitness value , the explosion radius , the number of explosion-generated sparks , the upper boundary and the lower boundary of the spark explosion location.
| Algorithm 1. Partial fireworks algorithm: generating pseudo-random numbers |
| Inputs: . Output: the sequence of pseudo-random numbers . Start: 1. Choose the series and initialize the positions of the N fireworks ; 2. For i = 1 to N, 3. Calculate the fitness value of each firework , explosion radius , and the number of sparks according to Equations (2) and (3); 4. End. // Generate sparks through explosion operations. 5. For i = 1 to N, 6. For = 1 to , 7. Store sparks; ; 8. Choose z dimensions as the set , denotes the dimension of and U is replaced by pseudo-random numbers in normalized from 0 to 1; 9. Calculate the position offset × U, where U is replaced by a pseudo-random number in normalized to [−1, 1]; 10. For each k in DS1, 11. ; 12. According to Equation (6), map out-of-bounds sparks to the valid boundary range. 13. End 14. Preserve in exploding spark populations; 15. End 16. End // produce mutated sparks ; 17. For do 18. Select a spark randomly; 19. Randomly choose z dimensions as the set , is the dimension of , and U is replaced by a pseudo-random number from normalized between 0 and 1. Calculate the mutation parameter e, where e is the pseudo-random number derived from ; 20. For each k in DS2, do 21. ; 22. Detect the boundary according to Equation (6) and map by the given rule; 23. End 24. Save to the mutated spark population; 25. End 26. Preserve the Euclidean distances between any pair of fireworks, sparks, and mutated sparks, denoted by ; 27. Select individuals among fireworks, sparks, and mutated sparks as the next explosion fireworks according to Equation (8); 28. End |
2.4. Performance Analysis of Random Sequences Generated by the FWA
2.4.1. Sequence Distribution
In the fireworks algorithm (FWA), the generated sequence consists of the Euclidean distances between every pair of initial fireworks, explosion-produced sparks, and sparks from the mutated spark explosion. Therefore, FWA employs the pseudo-random sequence generated by the Logistic map to initialize the positions, dimensions, and positional offsets of the fireworks. Each module of FWA exhibits strong randomness in every iteration. Furthermore, the introduction of multiple parameters such as explosion boundaries enables the image encryption based on FWA to better resist nonlinear prediction attacks. The sequence generated by FWA is normalized according to Equation (9).
where floor represents rounding down toward 0 and mod denotes the modulo operation that normalizes the sequence to the range [0, 255].
5000 consecutive entries are selected from the generated pseudo-random sequence according to Equation (9), as displayed in Figure 1. It can be seen that the sequence is relatively uniformly distributed from 0 to 255.
Figure 1.
Output sequence plot of FWA.
2.4.2. NIST Test
This section employs the NIST SP800-22 [8] randomness test suite to evaluate the performance of the proposed pseudo-random sequence. A one-million-bit sequence is tested with a significance threshold of 0.01. A test is considered valid if its p-value exceeds this threshold. In Table 1, √ indicates passing the NIST test, while × indicates failure to pass the NIST test. As shown in Table 1, all test items are qualified, which verifies that the generated sequence meets the randomness-based security requirements.
Table 1.
NIST test results.
3. Encryption and Decryption Scheme
3.1. Encryption Process
The encryption process fundamentally consists of two procedures, i.e., scrambling and diffusion. During the permutation process, the Arnold transform and a novel scrambling method are adopted to disturb the pixel positions of the image. Subsequently, FWA driven by a chaotic system is employed to generate pseudo-random numbers, which are then applied to convolution operations to achieve diffusion. The overall block diagram of encryption is shown in Figure 2.
Figure 2.
Diagram of the encryption process.
The detailed encryption process is described below.
- (1)
- Scrambling operation
Since the Arnold transform is periodic, the scrambled image can be recovered after a specific number of iterations [34]. In order to eliminate the periodicity of the Arnold transform, the novel scrambling operations are performed to obtain P1. Assuming the standard matrix size is 3 × 10, the shuffled matrix is rearranged to match this standard size. The process of scrambling is exhibited in Figure 3.
Figure 3.
Scrambling operation rule: (a) the original location, (b) the scrambled location.
- (2)
- Generating pseudo-random numbers
Step 1: Select the parameter of the chaotic system. After iterating via Equation (1), a sequence of terms is generated, and the first m terms are discarded to acquire the random sequence . Subsequently, is divided into six parts, i.e., and , with a total number of n elements.
Step 2: Set the parameters of FWA: the number of initial fireworks m1, variable dimension D, the number of variant sparks , the number of explosions , explosion radius , the explosion constraint factors a and b, the number of iterations number T, the upper boundary UB, and the lower boundary LB of the spark explosion location. The sequence is generated according to Algorithm 1.
- (3)
- Convolution stage
Multiple convolution operations are performed in the convolution phase. Taking two consecutive convolutions as an example, any column Lh with is selected from the scrambling matrix P1 of size . The convolution kernel size is C × C. To maintain the size of the output matrix unchanged after convolution, the target matrix needs to be zero-padded. In this example, zeros are padded at the bottom of the matrix during calculation. A set of pseudo-random numbers generated by FWA is selected to form the matrix of size .
Table 2 lists the convolution operations of the same input matrix with different convolution kernels, including the scheme proposed in Ref. [35]. The convolution calculation in Ref. [35] can change pixel values, but does not alter the difference between adjacent pixel values. Therefore, it faces the risk of being cracked by attackers. Inspired by this approach, we propose an improved reversible convolution strategy. The detailed convolution steps are listed in Table 3. Through analysis, we conclude that the differences between adjacent pixel values before and after the convolution are irrelevant and exhibit no obvious regularity. Moreover, without the pseudo-random matrix M1, the convolved data cannot be recovered.
Table 2.
Example of convolution calculation in the literature [35].
Table 3.
Example of the convolution calculation as proposed in this paper.
- (4)
- Diffusion stage
The cipher matrix P2 is obtained after multiple convolutions. An arbitrary column of the input matrix is fixed and excluded from convolution operations so that its information can be preserved. To further enhance encryption performance and eliminate residual correlation information, bit-level diffusion is introduced.
Step 1: Convert the element p2i in P2 (i = 1, 2, …, M × N) into an 8-bit binary string a1a2a3a4a5a6a7a8.
Step 2: Take several pseudo-random numbers from to construct a matrix K1 of size , which serves as the diffusion matrix for the higher four bits. Then, select several pseudo-random numbers from to form a matrix K2 of size as the diffusion matrix for the lower four bits, and convert all the elements in K1 and K2 into 8-bit binary numbers. Each element () is transformed into an 8-bit binary number, denoted by x1x2x3x4x5x6x7x8. Similarly, the binary form of () is expressed as y1y2y3y4y5y6y7y8.
Step 3: The high four bits (a1a2a3a4) of each element p2i in P2 correspond to x1x2x3x4 from the corresponding element in K1, whereas the low four bits (a5a6a7a8) correspond to y5y6y7y8 from K2. The diffusion operation is illustrated in Figure 4.
Figure 4.
Bit-level diffusion.
Step 4: After bit-level diffusion, an 8-bit binary number is obtained. Subsequently, the binary values after bit-level diffusion are converted into decimal form to obtain the encrypted image P3.
3.2. Decryption Process
Due to the symmetry of the proposed encryption-decryption model, the decrypted image can be obtained by reversing the encryption procedure. An example of the deconvolution operation is shown in Table 4.
Table 4.
Deconvolution operations.
4. Experimental Results and Performance Analysis
4.1. Experimental Results
To evaluate the encryption performance, five standard grayscale test images, Cameraman, Peppers, Clock, Female, and House, all of size 256 × 256, are chosen from the public USC-SIPI standard image database. With diverse features and typical structural characteristics, they facilitate multi-dimensional assessment of the proposed encryption algorithm. All experiments were implemented in MATLAB 2022b on a 64-bit Windows 11 platform with 16 GB RAM. The keys are set as = 3.7245, = 0.1, [−10, −10], = [10,10], = 25, = 50, = 125, and three different convolution kernels. Figure 5 illustrates the experimental results concerning encryption and decryption.
Figure 5.
Images (a–c), (d–f), (g–i), (j–l), and (m–o) are the original, encrypted, and decrypted Cameraman, Peppers, Clock, Female, and House, respectively.
4.2. Histogram Analysis
Histograms provide a visual representation of pixel intensity distributions in images. An uneven distribution may allow attackers to extract effective information via statistical analysis [36]. The closer the occurrence probabilities of different pixel values are, the lower the risk of illegal information cracking is. Figure 6 plots the grayscale histograms of test images before and after two rounds of diffusion. A significant difference can be observed between the plaintext and ciphertext histograms. The former varies drastically, while the latter is relatively flat. Therefore, the encrypted images are difficult to crack or restore via statistical analysis.
Figure 6.
Images (a,b) are the histograms of the original and encrypted Cameraman, respectively. Similarly, images (c–j) correspond to the histograms of the original and encrypted Pepper, Clock, Female, and House, respectively.
4.3. Key Analysis
To ensure that a system can resist attacks, the magnitude of the key space also needs to meet certain requirements [37]. In the proposed method, both the chaotic initial values and chaotic parameters have a precision of 10−15, and the four critical values related to FWA boundaries have a precision of . Therefore, the computed key space is . Furthermore, the 21 parameters of the 3 × 3 convolution kernels are arbitrary positive integers, yielding a key space far larger than . Consequently, the key space satisfies the security requirements and can effectively resist exhaustive attacks. The decrypted images obtained with a slightly deviated key are exhibited in Figure 7. As can be seen from the figure, the decrypted image remains chaotic, and no information is leaked, verifying that the proposed encryption algorithm is highly sensitive to tiny variations in the key.
Figure 7.
Decrypted images using an incorrect key. (a) , (b) , (c) , and (d) .
4.4. Information Entropy Analysis
Information entropy is commonly used to evaluate the irregularity, unpredictability, and pixel intensity randomness of encrypted images, making it an important metric for assessing encryption performance. A higher degree of pixel distribution randomness corresponds to a greater information entropy value [38]. It can be calculated mathematically as
where represents the occurrence probability of different pixel values . A grayscale image with 256 gray levels corresponds to the optimal entropy H(s) of 8 bits. Table 5 lists the entropy results of different encryption algorithms. It can be seen that all results are extremely close to 8 bits. This indicates that the pixel distribution of the image is effectively scrambled after encryption, which further verifies that the proposed algorithm has excellent encryption performance and strong resistance to entropy-based attacks.
Table 5.
Information entropy values for test images (bits).
4.5. Adjacent Pixels Correlation
Attackers can illegally acquire plaintext content by analyzing the correlative features of adjacent pixels across horizontal, vertical, and diagonal directions, and thereby steal the plaintext information. To defend against such statistical attacks, the designed encryption algorithm needs to eliminate pixel correlations in all three directions [42]. To verify this, 5000 pairs of adjacent pixels are arbitrarily chosen from the Cameraman and Peppers test images. The correlation coefficient is calculated via Equation (11) [43], and the results are presented in Table 6.
where denotes the total number of randomly selected pixel pairs, while and stand for the mean of the x and y sequences, respectively. When the correlation coefficient of adjacent pixels is close to 0, the encrypted image demonstrates better randomness.
Table 6.
Correlation coefficients for each test image in different directions.
It is evident that after several rounds of pixel scrambling, the correlation coefficients and scatter plots reveal a dramatic drop in adjacent pixel correlation for the test images. Furthermore, the correlation results of Cameraman are compared with those from other existing algorithms, demonstrating that the proposed algorithm achieves comparable performance. The correlation coefficients for all test images are reduced from nearly 1 to 0.001. The algorithm performs well in eliminating pixel correlations and distributing image pixels in a highly disordered manner, which enables it to effectively defend against statistical attacks from this perspective (Figure 8).
Figure 8.
(a–c) show the correlation coefficients of the plaintext Cameraman in three different directions. (d–f) show the correlation coefficients of the encrypted Cameraman in three different directions. (g–i) show the correlation coefficients of the plaintext Peppers in three different directions. (j–l) show the correlation coefficients of the encrypted Peppers in three different directions.
4.6. Analysis of Differential Statistics
Attackers usually introduce minor tampering to the original image. The tampered image is encrypted using the same key and encryption scheme. By comparing the two ciphertexts, attackers are able to extract valuable confidential information [44]. NPCR and UACI are two performance indicators for evaluating resistance against differential attacks. Their calculation equations are shown in Equations (12) and (14), respectively [45].
where W and H denote the height and width of the image. and represent the pixel values of the original and the encrypted images, respectively. represents the pixel value of the encryption result with one pixel modified in the plaintext. It is widely recognized as optimal when the NPCR value is between 99.3082 and 99.5906, and the UACI value is between 33.3115 and 33.6156 [46]. According to Table 7, all test images exhibit the NPCR and UACI values within the permissible ranges. After multiple rounds of global convolution operations, even a tiny change to one pixel in the plaintext will yield an encrypted image that is almost completely different from the original image. Hence, this verifies that the proposed encryption scheme possesses high complexity and excellent diversity.
Table 7.
NPCR and UACI of different test images.
4.7. Robustness Analysis
Encrypted images are vulnerable to malicious tampering and cropping during transmission. Hence, robustness analysis is of great significance. In this section, we calculate and evaluate the mean square error (MSE), peak signal-to-noise ratio (PSNR), and structural similarity index measure (SSIM) for robustness assessment.
4.7.1. Cropping Attack Analysis
During the transmission and storage of ciphertext images, partial information may be lost, so it is necessary to conduct a robustness test on the encryption algorithm. A practical encryption algorithm should not only achieve effective image encryption, but also maintain satisfactory decryption and reconstruction performance under partial information loss. To evaluate the algorithm’s resistance to cropping attacks, encrypted images are cropped into different sizes at various positions. The cropped encrypted images and their corresponding decrypted results are presented in Figure 9. Valid information can still be distinguished even under blurring interference. Therefore, the proposed scheme can still preserve valid image information against cropping attacks.
Figure 9.
(a–c) correspond to cropping 1/32, 1/16, and 1/8 of the encrypted images, respectively, while (d–f) are the corresponding decrypted images.
4.7.2. Noise Attack Analysis
Under the interference of Salt-and-Pepper noise of different intensities, the identifiable valid information in the image gradually decreases. Figure 10 presents the experimental results, indicating that certain valid information can still be recognized at a noise intensity of 0.04. This further verifies that the proposed encryption scheme possesses a favorable capability to resist external noise interference.
Figure 10.
Decrypted images with Salt-and-Pepper noise of different intensities: (a,d,g) intensity is 0.015; (b,e,h) intensity is 0.04; (c,f,i) intensity is 0.06.
4.7.3. Structural Similarity Index (SSIM)
As a widely used metric, the structural similarity index (SSIM) evaluates the quality of decrypted images by measuring their similarity to the original ones. SSIM values range from −1 to 1, and values closer to 1 correspond to better restoration results.
where , , and are the mean values and the variance values of and , respectively. is the covariance value between and . and are two regularization constants. The SSIM values are presented in Table 8. It can be concluded that the SSIM gradually degrades with the increase in noise intensity.
Table 8.
SSIM, MSE, and PSNR of test images at different intensities of salt-and-pepper noise.
4.7.4. Peak Signal-to-Noise Ratio
Similar to SSIM, the peak signal-to-noise ratio (PSNR) can also reflect the error level between two images. Larger PSNR values indicate greater similarity between the decrypted image and the original one.
where and are the pixel values of the original image and the decrypted one, respectively. The gray level is quantized with 8-bit binary, so is 8. The proposed algorithm belongs to a lossless encryption algorithm, so its MSE value is 0. Table 8 displays the PSNR and MSE values of the images obtained after decryption when noise is added to the encrypted images. It is obvious that decryption quality gradually deteriorates with the increase in noise intensity.
4.8. Chi-Square Test
The randomness of encrypted images is typically evaluated using the chi-square test based on their statistical characteristics. Ideally, the pixel gray values of the cipher image are expected to be distributed uniformly without obvious fluctuations. If the chi-square result is lower than the threshold of 293.2478, the encryption performance is regarded as satisfactory.
where represents the occurrence frequency of different gray levels, is the ideal frequency. For a 256 × 256 image with intensity levels between 0 and 255, the expected frequency is 256. Table 9 shows that all test results meet the chi-square criterion.
Table 9.
of different images.
4.9. Encryption Quality Analysis
Typically, irregular deviation (ID), uniform histogram deviation (UHD), and maximum deviation (MD) are used to evaluate image encryption quality.
4.9.1. Irregular Deviations
ID is employed to evaluate image encryption quality
where denotes the absolute difference in the occurrence count of gray level between the original and encrypted images, and . As listed in Table 10, a larger ID value implies that the original image content is significantly disturbed after encryption. This makes the ciphertext image harder to identify and analyze.
Table 10.
Encryption quality detection indicators for different images.
4.9.2. Uniform Histogram Deviation
UHD [15] can also be used to evaluate image encryption quality.
where i denotes different gray levels, Ii is the pixel count corresponding to gray level i in the encrypted image, stands for the ideal uniform histogram of the image, while M and N represent the image height and width, respectively. Table 10 shows that the UHD values of all encrypted images approach 0. This indicates good encryption performance and negligible information leakage.
4.9.3. Maximum Deviation
MD denotes the maximum gray-level difference between pixel pairs in the original image and its encrypted image.
where P(i, j) and D(i, j) separately represent pixel values for the plaintext image and ciphertext image.
Table 10 lists the MD values of different encrypted images. The obvious discrepancies among these results demonstrate desirable encryption effectiveness.
4.10. Chosen-Plaintext Attack
The chosen-plaintext attack is a common attack model in image encryption. Attackers infer valid information by selecting specific plaintexts and acquiring the corresponding ciphertexts. Although FWA exhibits nonlinear characteristics, attackers often adopt pure white or pure black images to deduce the secret key. Figure 11 presents the encryption results of pure black and pure white images, from which no meaningful information can be visually distinguished. Consequently, the proposed encryption algorithm is capable of defending against the chosen-plaintext attack effectively.
Figure 11.
Experimental results: (a) pure black image; (b) encrypted pure black image; (c) pure white image; (d) encrypted pure white image.
4.11. Time Analysis
To evaluate the computational efficiency of the proposed encryption scheme, we quantitatively analyze the time consumption of different encryption stages, including the key-generation stage, reversible convolution diffusion stage, and the overall encryption process. The corresponding results are presented in Table 11, which further verify that the proposed algorithm achieves a good balance between encryption security and computational efficiency and is suitable for practical image-encryption applications.
Table 11.
Encryption and decryption times at different stages.
5. Conclusions
An image encryption scheme that combines FWA with convolution operations is proposed. In this scheme, the 1D Logistic map is used to regulate FWA in generating new pseudo-random sequences. This method enhances the security of 1D chaotic maps and avoids the high computational cost of high-dimensional chaotic systems in practical applications. Moreover, a reversible convolution operation is designed. Pixel values are correlated with both the pseudo-random sequences generated by FWA and the pixels preselected prior to convolution. In addition, convolution kernels and selected columns are not reused in multiple convolution rounds, thereby further enhancing the algorithm’s sensitivity and its robustness against various attacks. Experimental results demonstrate that the integration of chaotic systems with FWA achieves a large key space, high key sensitivity, and strong resistance to brute-force and statistical attacks. Quantitative tests show that the information entropy of the encrypted image is higher than 7.988, while the NPCR and UACI values exceed 99.9% and 33.36%, respectively. These indicators further verify the security and effectiveness of the proposed scheme. Hence, the proposed scheme achieves favorable security and outstanding encryption performance. In future work, higher-dimensional chaotic systems can be introduced to investigate multi-image encryption with a proper trade-off between efficiency and computational complexity.
Author Contributions
Conceptualization, Y.L. and R.L.; methodology, B.P. and H.Z.; software, B.P. and H.Z.; validation, Y.L., R.L. and X.W.; formal analysis, B.P.; investigation, B.P. and R.L.; resources, Y.L.; data curation, H.Z.; writing—original draft preparation, B.P.; writing—review and editing, Y.L., R.L. and N.Z.; visualization, B.P.; supervision, Y.L.; project administration, Y.L.; funding acquisition, Y.L. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the National Natural Science Foundation of China [Grant Nos. 62041106 and 32460441] and the Natural Science Foundation of Jiangxi Province (20202BABL20203).
Data Availability Statement
The data presented in this study are available upon request from the corresponding author.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Kaur, M.; Kumar, V. A comprehensive review on image encryption techniques. Arch. Comput. Methods Eng. 2020, 27, 15–43. [Google Scholar] [CrossRef] [Scilit]
- Man, Z.L.; Li, J.Q.; Di, X.Q.; Sheng, Y.H.; Liu, Z.F. Double image encryption algorithm based on neural network and chaos. Chaos Soliton. Fract. 2021, 152, 111318. [Google Scholar] [CrossRef] [Scilit]
- Shao, S.W.; Li, J.; Shao, P.; Xu, G. Chaotic image encryption using piecewise-logistic-sine map. IEEE Access 2023, 11, 27477–27488. [Google Scholar] [CrossRef] [Scilit]
- Fridrich, J. Symmetric ciphers based on two-dimensional chaotic maps. Int. J. Bifurc. Chaos 1998, 8, 1259–1284. [Google Scholar] [CrossRef] [Scilit]
- Alaklabi, A.; Munir, A.; Hafeez, M.A.; Khattak, M.A.K. Z-Crypt: Chirp z-transform-based image encryption leveraging chaotic logistic maps and substitution permutation network. IEEE Access 2024, 12, 123401–123422. [Google Scholar] [CrossRef] [Scilit]
- Tu, P.F.; Zhang, X.F.; Chen, T.T. An improved two-dimensional chaotic system for image encryption. In Proceedings of the 2023 6th International Conference on Artificial Intelligence and Pattern Recognition, Xiamen, China, 22–24 September 2023. [Google Scholar]
- Yang, F.F.; Mou, J.; Cao, Y.H.; Chu, R. An image encryption algorithm based on bp neural network and hyperchaotic system. China Commun. 2020, 17, 21–28. [Google Scholar] [CrossRef] [Scilit]
- Wang, M.M.; Song, X.G.; Zhou, N.R.; Liu, S.H. Novel 1-D enhanced Log-logistic chaotic map and asymmetric generalized gaussian apertured FrFT for image encryption. Chaos Solitons Fract. 2024, 187, 115443. [Google Scholar] [CrossRef] [Scilit]
- Ye, G.D.; Guo, L.M. A visual meaningful encryption and hiding algorithm for multiple images. Nonlinear Dyn. 2024, 112, 14593–14616. [Google Scholar] [CrossRef] [Scilit]
- Ye, G.D.; Du, S.M.; Huang, X.L. Image compression-hiding algorithm based on compressive sensing and integer wavelet transformation. Appl. Math. Model. 2023, 124, 576–596. [Google Scholar] [CrossRef] [Scilit]
- Hu, L.L.; Chen, M.X.; Wang, M.M.; Zhou, N.R. A multi-image encryption scheme based on block compressive sensing and nonlinear bifurcation diffusion. Chaos Solitons Fract. 2024, 188, 115521. [Google Scholar] [CrossRef] [Scilit]
- Tang, J.N.; Lin, J.Y.; Hong, Y.J.; Hou, J.A.; Zhao, Y.H. A novel chaotic image encryption scheme based on block compressive sensing. Nonlinear Dyn. 2026, 114, 298. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Yi, Y.C.; Chen, Z.; Xie, S. A hybrid color image encryption scheme integrating 3D hyperchaotic map, complex network, and compressed sensing. J. Inf. Secur. Appl. 2026, 99, 104441. [Google Scholar] [CrossRef] [Scilit]
- Wen, H.P.; Yang, L.C.; Bai, C.X.; Liu, T.; Chen, L.; Hu, Y.; He, D. Exploiting high-quality reconstruction image encryption strategy by optimized orthogonal compressive sensing. Sci. Rep. 2024, 14, 8805. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhou, N.R.; Hu, L.L.; Huang, Z.W.; Wang, M.M.; Luo, G.S. Novel multiple color images encryption and decryption scheme based on a bit-level extension algorithm. Expert Syst. Appl. 2024, 238, 122052. [Google Scholar] [CrossRef] [Scilit]
- Xu, Y.D.; Gao, S.; Cao, Y.H.; Mou, J. Multi-image encryption scheme based on chaotic pseudo-random signal generator and DWT compression. ACM Trans. Multimed. Comput. Appl. 2026, 22, 82. [Google Scholar] [CrossRef] [Scilit]
- Girija, R.; Singh, H.; Abiram, G. Noise estimation in medical images based on fast discrete curvelet transform via wrapping. Results Opt. 2025, 19, 100820. [Google Scholar] [CrossRef] [Scilit]
- Zhang, X.Q.; Liu, Z.W.; Yang, X.C. Fast image encryption algorithm based on 2D-FCSM and pseudo-wavelet transform. Nonlinear Dyn. 2023, 111, 6839–6853. [Google Scholar] [CrossRef] [Scilit]
- Zou, J.Z.; Zhou, N.R.; Zhong, J.H.; Gong, L.H. An attack-resilient Unet watermarking framework for copyright protection via adaptive weighting and resolution recovery. Signal Process. 2026, 246, 110609. [Google Scholar] [CrossRef] [Scilit]
- Zhou, N.R.; Wu, J.W.; Chen, M.X.; Wang, M.M. A quantum image encryption and watermarking algorithm based on QDCT and baker map. Int. J. Theor. Phys. 2024, 63, 100. [Google Scholar] [CrossRef] [Scilit]
- Miao, M.K.; Gong, L.H.; Zhang, Y.J.; Zhou, N.R. Image encryption and authentication scheme based on computational ghost imaging and lifting wavelet transform. Opt. Laser Eng. 2025, 184, 108560. [Google Scholar] [CrossRef] [Scilit]
- Girija, R.; Singh, H.; Abiram, G. Asymmetric image cryptosystem based on chaotic henon map fingerprint masks in various domains. Procedia Comput. Sci. 2026, 283, 2536–2545. [Google Scholar] [CrossRef] [Scilit]
- Gong, L.H.; Xiang, D.N.; Wu, J.W.; Chen, S.H. Image encryption-authentication scheme based on pixel adaptive diffusion. J. Mod. Opt. 2026, 73, 687–703. [Google Scholar] [CrossRef] [Scilit]
- Guo, Z.; Chen, S.H.; Zhou, L.; Gong, L.H. Optical image encryption and authentication scheme with computational ghost imaging. Appl. Math. Model. 2024, 131, 49–66. [Google Scholar] [CrossRef] [Scilit]
- Darani, A.Y.; Yengejeh, Y.K.; Pakmanesh, H.; Navarro, G. Image encryption algorithm based on a new 3D chaotic system using cellular automata. Chaos Solitons Fract. 2024, 179, 114396. [Google Scholar] [CrossRef] [Scilit]
- Yogi, B. Image encryption with cellular automata: A comprehensive review. Arch. Comput. Methods Eng. 2026, 33, 4589–4608. [Google Scholar] [CrossRef] [Scilit]
- Cui, Y.; Guo, J.F.; Shang, C.J.; Zheng, R.H.; Wu, Q.; Dai, X.; Li, C.; Li, X.; Liu, S. Light-field 3D image parallel encryption based on the state transition diagram of maximum length cellular automata. Opt. Commun. 2024, 552, 130063. [Google Scholar] [CrossRef] [Scilit]
- Niu, B.W.; Dai, X.G.; Hu, Y.J.; Zhang, H.R.; Jing, G.; Zhang, Z.P.; Fan, G.F. A fireworks algorithm based Gerchberg–Saxton algorithm for the design of diffractive optical element for beam shaping. Opt. Commun. 2024, 557, 130303. [Google Scholar] [CrossRef] [Scilit]
- Xing, C.; Wang, J.S.; Liu, Y. Fireworks algorithm with elitism-based selection strategy and optimal particle guidance mechanism. J. Intell. Fuzzy Syst. 2024, 46, 7427–7446. [Google Scholar] [CrossRef] [Scilit]
- Fan, P.; Zhang, Y.T. Quantum image encryption algorithm based on Fisher-Yates algorithm and logistic mapping. Quantum Inf. Process. 2024, 23, 237. [Google Scholar] [CrossRef] [Scilit]
- Ma, X.J.; Wang, C.H.; Qiu, W.L.; Yu, F. A fast hyperchaotic image encryption scheme. Int. J. Bifurc. Chaos 2023, 33, 2350061. [Google Scholar] [CrossRef] [Scilit]
- Tan, Y.; Zhu, Y.C. Fireworks algorithm for optimization. In Advances in Swarm Intelligence; Springer: Heidelberg/Berlin, Germany, 2010; Volume 16145, pp. 355–364. [Google Scholar]
- Zhang, L.Y.; Fu, M.Y.; Fei, T.; Li, H.B. The artificial fish swarm algorithm improved by fireworks algorithm. Autom. Control Comput. 2022, 56, 311–323. [Google Scholar] [CrossRef] [Scilit]
- Liu, X.B.; Xiao, D.; Liu, C. Three-level quantum image encryption based on Arnold transform and Logistic map. Quantum Inf. Process. 2021, 20, 23. [Google Scholar] [CrossRef] [Scilit]
- Mousa, H.M. Partially deep-learning encryption technique. Comput. Mater. Cont. 2023, 74, 4277–4291. [Google Scholar] [CrossRef] [Scilit]
- Karawia, A.A.; Elmasry, Y.A. New encryption algorithm using bit-level permutation and non-invertible chaotic map. IEEE Access 2021, 9, 101357–101368. [Google Scholar] [CrossRef] [Scilit]
- Khan, J.; Khan, G.A.; Li, J.P.; AlAjmi, M.F.; Haq, A.U.; Khan, S.; Ahmad, N.; Parveen, S.; Shahid, M.; Ahmad, S.; et al. Secure smart healthcare monitoring in industrial internet of things (IIoT) ecosystem with cosine function hybrid chaotic map encryption. Sci. Program. 2022, 1, 8853448. [Google Scholar] [CrossRef] [Scilit]
- Maniyath, S.R.; Thanikaiselvan, V. An efficient image encryption using deep neural network and chaotic map. Microprocess. Microsyst. 2020, 77, 103134. [Google Scholar] [CrossRef] [Scilit]
- Hu, W.W.; Zhou, R.G.; Jiang, S.X.; Liu, X.A.; Luo, J. Quantum image encryption algorithm based on generalized Arnold transform and Logistic map. CCF Trans. High Perform. Comput. 2020, 2, 228–253. [Google Scholar] [CrossRef] [Scilit]
- Wu, J.H.; Xia, W.X.; Zhu, G.L.; Liu, H.; Ma, L.; Xiong, J. Image encryption based on adversarial neural cryptography and sha controlled chaos. J. Mod. Opt. 2021, 68, 409–418. [Google Scholar] [CrossRef] [Scilit]
- Sang, Y.P.; Sang, J.; Alam, M.S. Image encryption based on Logistic chaotic systems and deep autoencoder. Pattern Recognit. Lett. 2022, 153, 59–66. [Google Scholar] [CrossRef] [Scilit]
- Liu, X.Y.; Hua, Z.Y.; Yi, S.; Zhang, Y.; Zhou, Y. Bi-directional block encoding for reversible data hiding over encrypted images. ACM Trans. Multimed. Comput. Commun. Appl. 2024, 20, 1551–6857. [Google Scholar] [CrossRef] [Scilit]
- Wang, M.M.; Song, X.G.; Liu, S.H.; Zhao, X.Q.; Zhou, N.-R. A novel 2D log-logistic–sine chaotic map for image encryption. Nonlinear Dyn. 2025, 113, 2867–2896. [Google Scholar] [CrossRef] [Scilit]
- Ramaswamy, R.; Elsonbaty, A.; Alharbi, M.; Hagras, E.A.; Majzoub, S.; Elwakil, A.S. Chaotic clock generator for CPA-resistant image encryption based on a novel wide parameter range chaotic map. Cybersecurity 2026, 9, 87. [Google Scholar] [CrossRef] [Scilit]
- Ciylan, F.; Ciylan, B.; Atak, M. FPGA-based chaotic image encryption using systolic arrays. Electronics 2023, 12, 2729. [Google Scholar] [CrossRef] [Scilit]
- Liu, X.; Yang, J. A novel multi-layer image encryption algorithm based on 2D drop-wave function. Nonlinear Dyn. 2025, 113, 1775–1797. [Google Scholar] [CrossRef] [Scilit]
- Aziz, H.; Gilani, S.M.M.; Hussain, I.; Abbas, M.A. A novel symmetric image cryptosystem resistant to noise perturbation based on S8 elliptic curve s-boxes and chaotic maps. Eur. Phys. J. Plus 2020, 135, 907. [Google Scholar] [CrossRef] [Scilit]
- Dong, Y.M.; Yin, C.H.; Xu, C.; Yan, R. A quantum image encryption method for dual chaotic systems based on quantum logistic mapping. Phys. Scr. 2024, 99, 015103. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.






























































