Abstract
Secure transmission and storage of color images remain challenging tasks due to strong inter-pixel correlations and high data volume. This work proposes a one-dimensional sine-tent-logistic-exponential map (STLEM) equipped with numerical boundary correction rules to mitigate finite-precision numerical degradation so as to enhance the unpredictability of chaos-driven cryptosystems. We benchmark STLEM against classic logistic, tent, and sine maps via Lyapunov exponents, autocorrelation, approximate entropy, permutation entropy, Lempel-Ziv complexity, and Kolmogorov–Sinai entropy. Bifurcation diagrams, the 0–1 test, and NIST statistical tests are further adopted to characterize its chaotic dynamics and randomness. Comparative results verify that STLEM achieves improved dynamical complexity and randomness performance. Built upon the proposed STLEM, this paper constructs a color-image encryption scheme that employs a 256-bit master key and two groups of chaotic parameters to produce key-related chaotic sequences. The cryptosystem integrates dynamic edge expansion, chaotic permutation, position-dependent adaptive DNA encoding, DNA-domain chained diffusion, and two successive row-column permutation phases. HMAC-SHA-256 is utilized to generate plaintext-aware initial conditions and perform ciphertext authentication prior to decryption. Experimental validations demonstrate complete plaintext recovery under valid secret inputs, while authentication rejects invalid keys and tampered ciphertexts. Ciphered images exhibit high information entropy, negligible adjacent-pixel correlations, and satisfactory number of pixel change rate (NPCR) and unified average changing intensity (UACI) metrics. Benefiting from a sufficiently large key space and computational complexity, the proposed scheme is resilient against brute-force attacks and well suited for secure color-image communication scenarios, rather than acting as a general-purpose replacement for standard block ciphers.
1. Introduction
The digital revolution has greatly promoted the development of multimedia technology. Beyond the traditional function of information presentation, images now carry core data for military communication, medical diagnosis and public security fields. Once satellite images containing troop deployment information are intercepted during transmission, or patients’ MRI data is tampered with before being sent to clinicians, severe risks will be triggered. Therefore, guaranteeing the security of image transmission has become increasingly important.
Conventional image encryption techniques generally have unsatisfactory security performance. To address this issue, researchers in information security have introduced diverse technologies to enhance the security of image encryption. In 1998, J. Fridrich pioneered the application of chaotic systems to image encryption [1].
On this basis, image encryption has developed rapidly, and numerous novel algorithms have been proposed, including schemes based on deoxyribonucleic acid (DNA) encoding [2], wavelet transform [3] and genetic recombination [4]. Most of these methods combine chaotic systems with different encryption frameworks and carry out targeted optimizations. At present, designing high-performance image encryption algorithms by integrating chaotic systems with other technologies has become a popular research trend. As practical requirements become more stringent, traditional one-dimensional chaotic maps fail to satisfy the security demands of modern image encryption. For this reason, scholars have focused on modifying existing chaotic maps and enhancing their chaotic dynamics for encryption applications [5,6,7,8,9,10,11,12,13]. Niu et al. [14] designed an improved two-dimensional Hénon map and a modified one-dimensional logistic map. By optimizing the classic models, the original Hénon map was transformed into an effective encryption primitive. Ding et al. [15] proposed a reversible image encryption algorithm based on a new three-dimensional logistic map (3D-LM), which achieves efficient data scrambling. Sun et al. [16] presented a multi-layer encryption scheme that combines the logistic-sine chaotic map (LSCM) with cellular automata to improve overall security. Wang et al. [17] established a two-dimensional logarithmic-logarithmic sine chaotic map (2D-LLSCM) based on nonlinear logarithmic functions, aiming to improve the dynamic complexity of chaotic sequences. The adopted nonlinear function effectively increases the nonlinear characteristics of the chaotic system. Gao et al. [18] proposed a parallel color image encryption algorithm using the 2D Logistic-Rulkov neuron map (2D-LRNM), which organically integrates neural networks and chaotic systems. Xu et al. [19] constructed a quantum logistic-tent map and extended it to a fractional-order version. They investigated the nonlinear behaviors of the map using bifurcation diagrams, Lyapunov exponent spectra and spectral entropy. The experimental results indicate that the fractional-order map has stronger nonlinearity and better applicability to image encryption.
Traditional image encryption algorithms usually offer only a layer of security. As the underlying computational process becomes public, the confidentiality of the data may be compromised. DNA cryptography utilizes biological and computational properties to provide greater confidentiality than standard cryptographic algorithms when encrypting data [20]. DNA cryptography takes advantage of the self-assembly properties of DNA bases and combines them with cryptographic techniques to offer multiple security measures, thereby enhancing the degree of realization of data confidentiality [21]. For example, the authors in [22] utilized the amino acid table to convert the ciphertext to genomic form. The protein sequences in these tables increased the uncertainty level of the ciphertext. In recent years, due to the numerous excellent characteristics of DNA computing, such as its great parallelism, massive storage capacity, and low power consumption, it has been applied to image chaotic cipher systems [23,24,25,26,27,28,29,30].
In 2016, Kulsoom et al. [31] extracted the most significant and least significant bits of each pixel and carried out DNA operations. The proposed method exhibited poor anti-noise performance as the majority of pixel values remained unaltered. In 2018, Wei Ran et al. further developed an image encryption system that integrates DNA encoding with multiple chaotic maps [32]. Experimental results verified that the scheme effectively boosted plaintext and key sensitivity. Nevertheless, it suffers from high computational complexity and strict hardware requirements. Gao et al. [33] put forward a flexible multi-image encryption scheme based on a new n-dimensional chaotic model and octal DNA operations. The scheme supports the encryption of images with arbitrary categories, numbers and resolutions. With the help of customized key generation and SCAN-based scrambling, the overall security and anti-attack ability are significantly enhanced. Qiu et al. [25] devised an advanced image encryption algorithm combining DNA S_boxes and hyperchaotic systems. It dynamically constructs DNA S_boxes via 2-bit DNA encoding and 4-bit quasi-DNA encoding, and enables seamless transformation between the two encoding strategies. As revealed by experimental results, the key space reaches around , the resistance to differential attacks is over , and the information entropy of the ciphertext exceeds 7.997.
The core drawback of traditional one-dimensional chaotic maps for image encryption stems from three critical limitations. First, they possess narrow, discontinuous chaotic ranges. The classic logistic map, for instance, only exhibits chaotic dynamics when , leaving an extremely limited parameter space. Second, their output sequences follow severely non-uniform distributions, with most values clustered at the interval boundaries. Such biased statistical properties depart from ideal randomness and render the cryptosystem susceptible to statistical analysis attacks. Third, single maps feature overly simplistic structures; the generated pseudorandom sequences lack sufficient nonlinear complexity, which yields a tiny key space and unsatisfactory security performance, thus failing to withstand brute-force and known-plaintext attacks. Motivated by the above limitations, this paper proposes further improvements detailed in the subsequent two sections.
Firstly, a new one-dimensional chaotic system is constructed by integrating the features of the sine map, tent map and logistic map. Compared with conventional one-dimensional chaotic maps, this system has a wider key space and better statistical characteristics. Secondly, we combine the improved chaotic sequence with dynamic DNA encoding to establish the proposed “living encryption” framework.
In summary, the present study delivers three key research contributions. First, we develop an enhanced one-dimensional STLEM chaotic map that merges nonlinear terms from sine, tent, logistic and exponential functions. When benchmarked against classic one-dimensional chaotic counterparts, STLEM yields a broader stable chaotic-parameter interval, higher Lyapunov exponent values, and improved randomness behaviors. We further carry out systematic analysis to examine side effects brought by modulo arithmetic, boundary clipping, and numerical-reset operations, particularly for real-world finite-precision computation scenarios. Second, we realize a complete authenticated color-image encryption architecture on top of STLEM. This framework integrates dynamic edge-redundancy processing, position-dependent adaptive DNA encoding, DNA-domain chained CBC-like diffusion, alongside two-stage row-column permutation. Unlike many reported DNA-chaos cryptosystems that stick to static global DNA coding rules, our method produces spatially varying DNA rules from chaotic outputs without bringing extra metadata overhead. Third, HMAC-SHA-256 is deeply incorporated within chaotic-seed derivation workflows. This enables plaintext-aware seed computation and built-in ciphertext authentication. The authentication function filters out tampered ciphertext and invalid secret inputs before any decryption step, a capability rarely realized within most published chaos-DNA image encryption works.
2. The Proposed Improved Hybrid Chaotic Map
2.1. Sine-Tent-Logistic-Exponential Map (STLEM)
First, we return to the classic sine map, tent map and logistic map. Then, based on these three maps, we make improvements and obtain a new chaotic map: sine-tent-logistic-exponential map (STLEM). The mathematical formula of the one-dimensional logistic map is given in Equation (1):
where r represents the control parameter. This map behaves chaotically when . The mathematical expression of the sine chaotic map is as shown in Equation (2):
where a is the control parameter, and the chaotic interval is (1, 2]. The mathematical formula of the tent map is presented in Equation (3):
where r denotes the control parameter, and the chaotic interval is .
Considering the complexity requirements of image encryption, this paper fuses the above three classical chaotic maps and proposes an improved one-dimensional chaotic map, named the sine-tent-logistic-exponential map (STLEM). The mathematical expression of the STLEM is defined in Equations (4) and (5):
where
where a, b, c and d denote control parameters. To guarantee the numerical stability of chaotic iteration, several auxiliary operations are adopted in this work. First, the input state is normalized by a modulo 1 operation to confine the value within the interval . If the iteration state becomes infinite or non-numeric (NaN), it will be reset to to maintain the continuity of iteration. Furthermore, to avoid the system falling into fixed points near the boundaries, the output value of the chaotic map calculated by Equation (4) is further constrained: it is adjusted to when the value is less than , and set to when the value exceeds . These strategies effectively prevent iteration degradation and ensure the ergodicity and randomness of the generated chaotic sequences. By integrating the logistic map, sine map and tent map and introducing exponential nonlinearity, the proposed system achieves higher complexity, a wider parameter range and better randomness.
2.2. Lyapunov Exponent Analysis
The Lyapunov exponent (LE) is widely adopted to evaluate the sensitivity of dynamical systems to initial values. It characterizes the average divergence speed of nearby trajectories within the phase space. A positive LE demonstrates that the system is chaotic, while a negative or zero LE indicates stability or periodicity. The calculation formula for the Lyapunov exponent is given in Equation (6):
where n denotes the index of the data points in the generated time series .
For reproducibility, the reference configuration for all non-swept parameters is with initial condition . The one-parameter sweeps adopt 201, 201, 101, and 101 uniformly-spaced sampling points for , , , and , respectively. All iterates are computed under IEEE-754 [34] double-precision floating-point arithmetic. For each parameter sample, the first 2000 iterations are discarded as transient evolution, and the following iterations are utilized to calculate the Lyapunov exponent according to Equation (6). The system state is taken modulo one following the definition of the map. An optional near-boundary correction rule is implemented and logged during computation; this correction is never triggered across all points of the Lyapunov-exponent sweeps, and therefore no boundary reset affects the numerical results shown in Figure 1.
Figure 1.
(a–d) show the Lyapunov exponent diagrams corresponding to parameters a, b, c and d, respectively. The blue curves represent the full largest Lyapunov exponent across all sampled parameters. Green curves overlay only points with positive values to denote chaos; in oscillatory regions, positive peaks are green, and negative troughs remain blue.
The Lyapunov exponent (LE) curves of the proposed map are illustrated in Figure 1. Most parameter regions yield predominantly positive LE values, demonstrating that the system can sustain chaotic dynamics over wide parameter spaces. For parameter a spanning from 0 to 20, the LE starts at a large positive value and gradually decreases with increasing a. Positive LE values corresponding to chaotic behavior are observed for . Narrow periodic windows with negative LE emerge around . Within , the LE fluctuates between positive and negative values, indicating alternating chaotic and periodic dynamical states. For parameter b, negative LE only occurs within an extremely narrow interval near , while the LE remains stably positive in the majority of the investigated range , varying between and . For parameters c and d, the LE curves stay consistently positive across the entire scanned parameter domains without observable periodic windows. The widespread positive LE characteristics confirm that the proposed map can generate highly unpredictable chaotic sequences, which is essential for constructing secure image-encryption schemes.
2.3. Analysis of Bifurcation Diagrams
To comprehensively investigate the parameter-dependent dynamical evolution of the newly constructed chaotic map, we first adopt bifurcation diagrams to visualize the iterative state variation trajectories as single control parameters change, and then we further utilize Lyapunov exponent (LE) heat maps to quantify the chaotic intensity under two-parameter coupling scenarios.
For each one-dimensional bifurcation diagram, uniformly-spaced parameter samples are adopted over the same intervals as in Section 2.2, while the remaining parameters are kept fixed at with initial condition . For each parameter value, the first 2000 iterations are discarded as transient, and the subsequent 500 state points are rendered for visualization. The logged near-boundary correction counter remains zero for all sampled parameters. Consequently, the presented orbits are generated purely by the modulo-defined map, and no near-boundary reset is activated under this numerical protocol.
The visualized results are presented in Figure 2, where subplots (a)–(d) depict the single-parameter bifurcation behaviors for parameters a, b, c, and d respectively, and subplots (e)–(f) render the LE heat maps for the parameter pairs a–b and c–d to characterize multi-parameter coupling dynamics. Detailed observations and interpretations of these graphical results are elaborated as follows.
Figure 2.
(a–d) display the bifurcation diagrams of parameters a, b, c and d, while (e,f) illustrate the Lyapunov exponent heat maps for parameter pairs a–b and c–d, respectively.
As illustrated in Figure 2, the bifurcation diagrams clearly reveal the dynamical behavior of the proposed chaotic map. For , iterative state values spread densely and uniformly over the full interval , exhibiting favorable ergodic properties. Consistent with the LE results, obvious alternating chaotic and periodic behavior occurs for . For parameter b, a tiny periodic gap emerges only in the immediate vicinity of , whereas the bifurcation diagram is filled with dense scattered points across the remaining parameter range. In contrast, the bifurcation diagrams of parameters c and d are fully covered by uniform state points throughout the entire parameter range, with no visible periodic or blank regions.
These phenomena demonstrate that the proposed chaotic system possesses a wide and robust chaotic parameter range. The vast majority of parameter combinations can maintain stable chaotic states, effectively avoiding predictable periodic or quasi-periodic behaviors that may cause security vulnerabilities in encryption applications. Furthermore, the chaotic orbits are evenly distributed within without obvious aggregation or voids, indicating that the generated pseudo-random sequences have outstanding uniform distribution characteristics.
The Lyapunov exponent heat maps intuitively and quantitatively reveal the chaotic performance of the proposed map under multi-parameter coupling conditions, and we separately analyze the two groups of heat maps, i.e., the a–b coupling heat map and the c–d coupling heat map. For the a–b Lyapunov exponent heat map, the color bar shows that the Lyapunov exponent values of valid chaotic regions range from 1.6 to 2.3. Massive deep-red areas correspond to LE values higher than 2.0, which demonstrates strong chaotic intensity of the coupled a and b parameters. Consistent with the single-parameter LE curves and bifurcation diagrams, sparse local blue low-value non-chaotic regions are observed over the heat map, corresponding to periodic windows at large a values and the narrow non-chaotic neighborhood near . As marked in Figure 2, the chaotic region accounts for 98.9% of the entire a–b parameter plane, which proves that the two control parameters possess flexible, robust chaotic coupling characteristics and a huge available key space for encryption. In contrast, the c–d heat map exhibits smooth, uniform color distribution without any dark blue low-value or blank non-chaotic areas. All combinations of c and d produce steady positive Lyapunov exponents between 2.15 and 2.22. This result fully verifies that c and d can maintain persistent, stable and strong chaotic dynamics across the whole tested range, free of periodic interference. Overall, the majority of parameter combinations yield high positive LE values, which confirms the system’s extreme sensitivity to initial values and tiny parameter perturbations. The gradual color gradient in both heat maps visually reflects how chaotic intensity evolves with coupled parameter variations, which provides a reliable experimental basis for selecting high-security parameter groups and constructing high-quality pseudo-random key streams for image encryption.
To further validate the intrinsic dynamical characteristics and numerical robustness of the proposed STLEM map, the influences of internal modulo operation, exponential nonlinear terms, boundary constraints, and numerical reset strategies on system behavior are systematically discussed. Firstly, the modulo-one operation strictly restricts all iterative states within , producing bounded orbits and eliminating divergent iterations. This canonical operation complies with the general design principle of discrete chaotic maps and introduces no artificial distortion to the inherent dynamics. Secondly, the hybrid exponential and polynomial nonlinearities significantly enrich the system’s dynamical complexity, contributing to high Lyapunov exponents and uniform orbital distribution, which effectively improves the randomness and ergodicity compared with conventional low-dimensional chaotic systems.
Thirdly, the embedded near-boundary correction and numerical reset rules are specially designed to eliminate computational singularities, including NaN and infinite values, during IEEE-754 double-precision numerical iterations. Notably, the correction mechanism is never activated throughout all Lyapunov exponent calculations and bifurcation simulations in this work, with a zero activation count for all sampling points. This indicates that all observed bifurcation structures, periodic windows, and Lyapunov exponent characteristics are completely generated by the inherent iterative formula of the STLEM map rather than through external artificial intervention.
For secure key generation in image encryption applications, we derive conservative chaotic parameter intervals that exclude large contiguous periodic patches and pre-periodic transition zones. Within these intervals, the maximum Lyapunov exponent stays persistently positive without obvious periodic windows. Based on the bifurcation diagrams, one-dimensional Lyapunov-exponent curves, and two-dimensional LE heat-maps, the conservative chaotic ranges are given as , , , and . It should be emphasized that the range corresponds to a pre-periodic transition zone containing intermittent narrow periodic windows. Although chaotic behavior can still be observed for some sampling points within this zone, coexisting periodic components introduce potential security threats; therefore, this zone is excluded from the conservative parameter set. Inside the proposed conservative intervals, the system yields high positive Lyapunov exponents and strong chaotic dynamics, and large-scale periodic regions are fully avoided. The valid key space for encryption is constructed mainly within these conservative intervals, which provides solid dynamical guarantees for the subsequent cryptographic experiments.
2.4. Dynamical Analysis via the 0–1 Test
The 0–1 test for chaos was employed to independently assess whether the proposed STLEM exhibits chaotic rather than regular periodic or quasi-periodic dynamics. In contrast to the maximal Lyapunov exponent, which quantifies the long-term average separation rate of nearby trajectories, the 0–1 test operates directly on a scalar time series and characterizes the growth of auxiliary translation variables.
Let denote the STLEM orbit after discarding transient iterations. For each frequency parameter , the translation variables are defined by
where denotes a set of sampled frequencies chosen away from 0 and to mitigate numerical resonance effects.
For a finite sequence, the mean squared displacement is calculated as
Because the generated orbit generally has a nonzero mean, the modified mean squared displacement is expressed as
where
The correlation-coefficient version of the 0–1 test was adopted. Specifically, for , with , the statistic for each sampled frequency is
The robust test statistic is then obtained as
A value of close to zero indicates regular motion, whereas a value close to unity provides evidence of chaotic dynamics. The reference line used in the figures is a conservative empirical acceptance criterion and is not a universal threshold of the 0–1 test.
All computations employ IEEE-754 double-precision arithmetic under MATLAB R2020a. The reference parameter vector is . Four distinct initial states, , are evaluated for every parameter vector. The full reproducible numerical protocol is summarized in Table 1. In particular, the 64 quasi-random parameter vectors are generated via a scrambled Sobol low-discrepancy sequence with rng(20260817,’twister’) fixed prior to orbit generation; no parameter configuration is manually selected post hoc to favor desirable chaotic outcomes.
Table 1.
Reproducible protocol for the STLEM 0–1 test.
A conservative reset-type boundary handling policy is activated as a fail-safe mechanism: whenever an iterate falls below or above , it is reassigned to or , respectively, and the correction event is recorded. Across all trajectories, the total number of boundary correction events is zero; that is, no trajectory ever invokes the reset clause. This observation is significant for two reasons. First, the STLEM map remains naturally confined within throughout the explored parameter domain, so the observed dynamics are intrinsic to the map rather than artifacts of artificial state re-injection. Second, because no reset occurs, every finite-time Lyapunov exponent is computed purely from the analytic derivative of the map along the orbit, with no numerical intervention that could inflate or distort the separation rate. The zero-correction result therefore strengthens the interpretation that positive Lyapunov exponents and are genuine properties of the STLEM dynamics.
Figure 3a shows that the post-transient orbit varies irregularly throughout the interval , without an apparent repeating pattern. For the representative frequency , Figure 3b exhibits an approximately linear increase in , which is consistent with the diffusive growth expected for chaotic dynamics. The translation-variable trajectory in Figure 3c forms an irregular, non-closed two-dimensional excursion rather than a bounded periodic loop.
Figure 3.
Representative 0–1 test for the fixed STLEM parameter vector. (a) Post-transient orbit; (b) modified mean-square displacement at ; (c) translation-variable trajectory; (d) over the 100 predetermined frequencies. The red dashed line at is an empirical visual reference, not a universal decision threshold. Results are shown for initial state ; the robust result for this orbit is .
For this reference parameter vector, four distinct initial states are tested: , , , and . The four orbit-wise robust statistics obtained from these four initial states are , , , and . Their median across initial conditions equals , and the corresponding mean maximal Lyapunov exponent is . The orbit visualized in Figure 3 corresponds to the first initial condition , yielding . As shown in Figure 3d, most individual values remain close to unity, although isolated frequency values may yield lower statistics. Such isolated drops are known numerical artifacts of the 0–1 test arising at certain resonant frequencies. Accordingly, we adopt the median-aggregated statistic over all sampled frequencies as our robust measure, instead of interpreting individual values.
To examine robustness across the parameter space, cross-validation was conducted over 68 parameter vectors and four initial-condition realizations per parameter set, yielding robust statistics in total. Figure 4a shows that the robust K values are concentrated in a narrow high-value range for all the pairs of initial conditions tested. Consistently, Figure 4b demonstrates that the median robust statistic of every parameter set remains well above the conservative reference level and close to unity.
Figure 4.
Cross-validation of the 0–1 test and maximal Lyapunov exponents across 68 STLEM parameter sets with four initial conditions. (a) Robust values for all 272 parameter–initial-condition pairs visualized as heatmap; (b) median robust for each parameter set; (c) mean maximal Lyapunov exponent for each parameter set; (d) histogram of all 272 robust values. The red dashed line marks the empirical reference level .
Figure 4c presents the corresponding mean maximal Lyapunov exponents. All parameter sets yield strictly positive mean values, spanning , providing an independent dynamical indicator consistent with the 0–1 test. The histogram in Figure 4d further confirms that the computed robust K values cluster close to unity rather than near the regular dynamics limit.
Across all 272 evaluated trajectories, lies within with an overall sample mean of . After aggregating to the parameter-set level by taking the median across four initial-condition realizations, parameter-wise ranges from to . Every evaluated parameter set satisfies the descriptive criteria and , where denotes the lower quartile computed across the four orbit-wise robust statistics for a given parameter vector.
Overall, the 0–1 test and the positive maximal Lyapunov exponents provide mutually consistent numerical evidence that the STLEM remains chaotic within the investigated parameter and initial-condition domain. Notably, zero boundary-correction events were observed across all 272 trajectories, confirming that the reported chaotic signatures are not artifacts induced by artificial state re-injection.
2.5. Comparative Analysis
To quantitatively evaluate the chaotic behaviors of the proposed STLEM, four widely recognized metrics, including the Lyapunov exponent, permutation entropy (PE), approximate entropy (ApEn), and normalized Lempel–Ziv complexity, are adopted. Meanwhile, the autocorrelation function is analyzed to characterize the linear dependence of the generated time series. The conventional sine map, tent map, and logistic map are employed as benchmark models for comparison.
Numerical evaluations are conducted with initial condition . A burn-in transient of 2000 iterations is discarded to eliminate transient effects, and a subsequent sequence of points is generated for metric computation. For permutation entropy, the embedding dimension is set to and time delay . For approximate entropy, we use embedding dimension and tolerance threshold , where denotes the standard deviation of the time-series segment, with a sampled length of 3000. The Lempel–Ziv complexity is computed on a binary sequence obtained by median-threshold binarization, and autocorrelation coefficients are calculated up to a maximum lag of 50.
The Lyapunov exponent (LE) quantitatively describes the sensitivity of a chaotic system to initial values. A positive LE value indicates chaotic behavior, and a larger LE corresponds to faster divergence of adjacent orbits and stronger unpredictability. As shown in Figure 5a, the LE value of STLEM reaches 2.1629, which is considerably higher than those of the sine map (0.6884), tent map (0.6926), and logistic map (0.6931). This result demonstrates that STLEM exhibits more remarkable sensitivity to initial conditions and superior chaotic dynamical properties.
Figure 5.
Performance comparison of STLEM, sine map, tent map and logistic map. (a) Lyapunov exponent. (b) Permutation entropy. (c) Approximate entropy. (d) Normalized Lempel–Ziv complexity. (e) Autocorrelation function.
Permutation entropy quantifies the ordinal-pattern distribution of chaotic sequences. It prevents the generated keystream from falling into periodic or quasi-periodic states, which would otherwise produce weak keys and degrade encryption security. The calculation formula of PE is defined as follows:
where m denotes the embedding dimension that determines the length of each reconstructed ordinal pattern, and represents the time delay between adjacent elements of the reconstructed vector. K is an integer satisfying , representing the total number of distinct ordinal patterns observed in the sequence, while corresponds to the occurrence probability of the j-th ordinal pattern. The normalized entropy scales the PE value into the range , where 0 corresponds to a completely regular sequence and 1 indicates an ideal random sequence. Permutation entropy measures the randomness and disorder of time series; higher PE values indicate weaker sequence predictability. It can be observed from Figure 5b that the permutation entropy of STLEM is 0.9959, which significantly outperforms the sine map (0.6678), tent map (0.6789), and logistic map (0.6789).
Approximate entropy characterizes the regularity and predictability of chaotic trajectories, where a higher ApEn value indicates superior sequence irregularity and better resistance against statistical-prediction attacks. The ApEn formula is expressed as:
where N is the length of the time series, m is the embedding dimension, and r is the tolerance threshold. Generally, r is set to 0.2 times the standard deviation of the sequence to judge the similarity between two reconstructed vectors. The Chebyshev distance is adopted to calculate the maximum absolute difference between corresponding elements of two m-dimensional vectors. represents the proportion of vectors whose distance from the i-th template vector is smaller than the threshold r, and denotes the average logarithmic matching rate of all template vectors. A smaller ApEn value implies higher sequence regularity and lower randomness. The approximate-entropy results illustrated in Figure 5c lead to consistent conclusions. The approximate entropy of STLEM achieves 2.0239, while the values of the three classic chaotic maps are all below 0.66. The above two entropy metrics jointly verify that the time series generated by STLEM possesses greater irregularity and better randomness.
Lempel–Ziv complexity assesses the compressibility of chaotic sequences; a normalized Lempel–Ziv complexity closer to unity indicates that the keystream approximates a purely random binary sequence and can effectively resist compression-based distinguishing attacks. The mathematical formula for normalized LZ complexity is given as follows:
where n denotes the length of the binary sequence, and represents the total number of new patterns generated by incrementally parsing the sequence from an empty string via the LZ78 algorithm. The term refers to the maximum number of distinct patterns available for a binary sequence with length n. The normalized LZ complexity is obtained by dividing the original complexity by , where p is the occurrence probability of symbol 1 in the sequence. This normalization eliminates the adverse impact of unbalanced symbol-probability distribution. The evaluation criterion of normalized LZ complexity is that values closer to 1 correspond to stronger structural randomness. A value of indicates that the sequence is highly consistent with a random binary string, whereas suggests a highly compressible and predictable sequence. For finite-length chaotic sequences, slight deviations above unity are commonly observed due to finite-size statistical effects.
As depicted in Figure 5d, the normalized Lempel–Ziv complexities of STLEM, sine map, tent map, and logistic map are compared quantitatively, yielding values of 1.1002, 1.0266, 1.1023 and 1.1052, respectively. The sine-map-generated sequence obtains the value closest to the ideal random benchmark of 1, followed by STLEM. The tent map and logistic map deviate further from 1, with logistic map showing the largest departure. Although STLEM is slightly inferior to the sine map in this metric, its normalized Lempel–Ziv complexity still resides within the high-randomness region near 1.
Ideal sequences generated by chaotic maps possess near-zero autocorrelation coefficients, implying negligible linear correlation between sequence elements at different delay positions. This property is essential for image encryption. Natural images exhibit strong spatial correlation, where adjacent pixels have prominent statistical dependence. If the pseudo-random sequences adopted in encryption retain obvious autocorrelation, the resulting ciphertext will preserve residual statistical features of the plaintext. In such cases, adversaries may recover partial plaintext information through statistical analysis such as autocorrelation-based attacks.
Therefore, chaotic sequences with extremely low autocorrelation employed as keystreams and scrambling factors can thoroughly break the inherent spatial correlation of image pixels. This makes ciphertext statistically similar to white noise, effectively defending against correlation-based known-plaintext and chosen-plaintext attacks and guaranteeing the overall security of the encryption scheme. For a discrete chaotic sequence with length N, the autocorrelation coefficient at lag k is defined as:
where denotes the mean value of the sequence , k is the lag index (, where K is the maximum lag considered), and with by definition. Figure 5e presents the autocorrelation-function curves of all involved chaotic maps. For all four maps, the autocorrelation coefficients rapidly decay to near zero when the lag exceeds zero and fluctuate slightly around the zero baseline without obvious periodic oscillations. This feature indicates that adjacent samples of the STLEM sequence have negligible linear correlation, satisfying fundamental randomness requirements for cryptographic usage.
Overall, the proposed STLEM exhibits excellent chaotic dynamical behavior. In terms of critical quantitative metrics including the Lyapunov exponent, permutation entropy, and approximate entropy, STLEM achieves remarkably higher values than the sine map, tent map and logistic map, which indicates stronger sensitivity to initial values, higher disorder and weaker predictability of the generated time series. In terms of normalized Lempel–Ziv complexity, the sine-map-generated sequence yields the value closest to the ideal random benchmark of unity. The normalized Lempel–Ziv complexity of STLEM is superior to the tent map and logistic map while being marginally higher in complexity than that of the sine map. Nevertheless, all these metrics are concentrated in the high-randomness region near 1, which demonstrates comparable favorable structural randomness for these sequences. Moreover, autocorrelation analysis demonstrates that the sequences produced by STLEM have negligible linear autocorrelation. Although STLEM does not achieve the optimal normalized Lempel–Ziv complexity, it achieves optimal comprehensive performance across all evaluation criteria. The experimental results verify that STLEM possesses richer dynamical characteristics than conventional one-dimensional chaotic maps, and it is well-suited for constructing pseudo-random number generators and chaotic encryption schemes.
2.6. NIST SP 800-22 Test
The NIST SP 800-22 [35] test suite serves as the authoritative benchmark for evaluating the randomness of random number generators (RNGs) and the security performance of encryption algorithms. This standard mandates multi-group sequence testing and adopts two core metrics, namely the p-value and pass rate, to quantitatively assess sequence randomness. In accordance with official specifications, the default significance level is set to , and the minimum qualified pass rate is defined as .
To ensure fully reproducible randomness verification, this paper explicitly reports all experimental configurations for NIST testing. For NIST input preparation, each retained real-valued chaotic state was converted into standard binary bitstreams via quantitative sampling:
where denotes the least-significant bit extracted from 32-bit fixed-point quantization. All generated bits were continuously saved as ASCII characters without separators, which strictly standardizes the bit generation procedure for NIST SP 800-22 testing.
To evaluate the statistical randomness of the proposed STLEM map, 100 independent chaotic sequences were generated under fixed chaotic parameters selected from valid chaotic parameter grids: . All simulations adopted IEEE-754 double-precision floating-point arithmetic. One hundred initial values were uniformly sampled within the range . The MATLAB random-number generator was initialized with a fixed seed of 20260614 using the twister algorithm to guarantee reproducibility.
For each initial condition, the first 5000 transient iterative values were discarded to eliminate boundary and initial-state interference. The subsequent valid iterations were used to generate one binary bit per iteration according to Equation (17). Consequently, the final test file contained 100 independent bitstreams, each consisting of bits. Experiment logging records show that the boundary-correction counter remained zero for all 100 test streams, meaning the boundary-correction branch was never triggered during NIST sampling under this set of parameters and initial-value range. The boundary-correction logic of STLEM was fully enabled in code without any modification or disablement.
Table 2 summarizes the NIST SP-800-22 test results of the STLEM-generated pseudo-random sequences. All uniformity p-values are greater than 0.01, and the passing proportion of each test satisfies the NIST statistical threshold. Notably, the Random-Excursions- related tests naturally produce 58 valid subsequences rather than 100 streams, which is an inherent mechanism of the NIST test suite. The proposed STLEM sequence passes all 15 items of the NIST SP 800-22 tests, demonstrating reliable statistical randomness that meets the basic statistical randomness requirements for cryptographic-related usage.
Table 2.
NIST SP-800-22 statistical test results.
3. DNA Encoding Technology
DNA is a linear biopolymer that stores genetic information using four nucleobases: adenine (A), thymine (T), cytosine (C), and guanine (G) [25]. In natural DNA, A and T form a complementary pair, as do C and G. A DNA-inspired representation can encode each 2-bit binary group using one DNA base because the four binary pairs, 00, 01, 10, and 11, correspond to the four DNA bases. To preserve Watson–Crick complementarity, the binary complements and are assigned to the base pairs A–T and C–G, respectively. This constraint gives rise to eight valid DNA coding rules [36], as listed in Table 3.
Table 3.
Eight DNA coding rules satisfying the Watson–Crick complementarity constraint.
For an 8-bit grayscale pixel, the binary representation is partitioned from the most significant bit to the least significant bit into four 2-bit groups. Each group is then converted into a DNA base according to a selected coding rule. For example, the pixel value 182 is represented as and partitioned into . Under Rule 1, the corresponding DNA sequence is ; under Rule 2, it is . The binary representation is not altered during this encoding step; instead, different coding rules produce different DNA-base representations of the same pixel value. The original pixel value is recovered by applying the inverse mapping associated with the same coding rule.
For subsequent DNA-domain operations, the DNA bases are assigned integer labels as
Given two DNA bases X and Y, the five operations employed in this work are defined under modulo-4 arithmetic as
Here, ⊕ denotes bitwise exclusive OR (XOR). Operations and are cyclically shifted variants of conventional DNA addition and subtraction, respectively. The positive cyclic direction is defined as . Accordingly, the constant in induces a one-step positive shift, whereas the constant in induces a one-step negative shift. DNA arithmetic operations are as shown in the Table 4.
Table 4.
DNA arithmetic operations. Entries are reported in the order .
These DNA-domain coding rules and arithmetic operations are key-selectable and reversible, which enables them to be embedded within a permutation–diffusion encryption architecture.
Numerous existing DNA-based image encryption approaches employ a single fixed global DNA coding rule for the entire image, where all pixels are encoded and decoded according to one predefined mapping. This static mapping strategy may introduce two potential security vulnerabilities. First, under chosen-plaintext attack conditions, the pixel-to-DNA-base mapping stays invariant over the whole image domain. Adversaries can exploit known plaintext-ciphertext pairs to mine statistical biases originating from this static transformation. Second, in the scenario where permutation operations are partially undermined, identical plaintext pixel values at distinct spatial coordinates always produce identical DNA symbol sequences, which risks leaking plaintext frequency information.
To mitigate these risks, this work adopts an adaptive position-dependent encoding strategy, in which the coding rule for each pixel block is dynamically determined by real-time outputs from the STLEM chaotic map such that distinct DNA mapping rules are assigned to different spatial positions. This design brings three key benefits. It enables mapping diversification, whereby identical pixel values appearing at different spatial positions are converted into distinct DNA symbol strings, suppressing plaintext-frequency leakage even when parts of the permutation layer become compromised. It also provides key-dependent variability: as coding rules stem from secret chaotic sequences, tiny perturbations applied to the master key or chaotic parameters will fully reshuffle the sequence of coding rules, increasing the computational burden for adversaries seeking to build static mapping tables linking pixel intensities and DNA symbols. Furthermore, the scheme supports seamless reversibility, since the full rule sequence can be faithfully reconstructed on the decryption side using matching keys and chaotic parameters, with no extra metadata describing coding rules requiring transmission or storage and therefore incurring zero additional metadata overhead.
It should be emphasized that adaptive position-dependent encoding cannot substitute permutation-diffusion mechanisms. Instead, it serves as an auxiliary confusion layer that cooperates with chaotic permutation and DNA-domain chained diffusion. The security improvement brought by this adaptive mechanism relies heavily on the statistical randomness of underlying chaotic sequences. For the proposed STLEM map, such randomness has been verified through NIST SP 800-22 tests and multiple dynamical analyses.
4. Proposed Encryption Scheme
The encryption function operates on one input image per invocation. A 256-bit master key and two four-parameter chaotic groups are supplied externally at run time. They are not included in the stored ciphertext metadata. Figure 6 summarizes the image encryption and authenticated-output procedure.
Figure 6.
Encryption Workflow.
4.1. Preprocessing and Authenticated Chaotic-Seed Derivation
Step 1: Image loading and channel decomposition. The input image is read as an 8-bit array. If the input is grayscale, its single channel is replicated to form a three-channel representation. After this normalization, let denote the input image. The three channels are decomposed into the red, green, and blue matrices , , and , respectively.
Step 2: Canonical plaintext hashing and seed derivation. The implementation hashes a canonical byte representation rather than a decimal character string. Specifically,
where ‖ denotes byte concatenation and denotes MATLAB column-major serialization. Hence, the dimensions and all RGB pixels contribute to the 256-bit plaintext digest.
For each encryption invocation, a 16-byte salt and a 12-byte nonce are drawn from java.security.SecureRandom. The seed-derivation context is
Three independent HMAC outputs are calculated from the 256-bit master key:
The first eight bytes of each are interpreted as a base-256 fraction and mapped to the chaotic operating interval:
Thus, , , and are real-valued chaotic seeds rather than three independent 256-bit encryption keys. The authenticated chaotic-seed derivation procedure is described in Algorithm 1.
| Algorithm 1 Authenticated Chaotic-Seed Derivation |
|
Step 3: Adaptive redundant-edge construction. For each channel , the edge width is selected according to
An all-zero carrier of dimensions is initialized, and is embedded in its central region. The first and last border lines are filled with weighted row-wise and column-wise checksums modulo 256. The four corner regions are filled with
Step 4: Block-aligned zero padding. With block size , the expanded matrices are zero-padded only on their bottom and right sides to obtain
The padded channel matrices can consequently be divided into non-overlapping blocks.
4.2. Chaotic Scrambling and Key Preparation
Step 5: Chaotic sequences and initial scrambling. Starting from , , and , three sequences , , and of length are generated after discarding 1000 transient iterations. This implementation adopts the proposed chaotic mapping STLEM. The parameter group is supplied externally. Values smaller than and larger than are replaced by and , respectively. The ascending-sort indices of , , and independently permute the vectorized , , and matrices.
Step 6: Operation-key sequences, DNA rules, and key matrices. The second external chaotic group is initialized with
This produces , , and . With and , the image-DNA rule sequences are
The three key-DNA rule sequences are constructed from , , and in the same manner. Two raw operation-rule sequences are generated from and by reduction modulo five.
The byte sequences for the key matrices are initialized by
and diffused according to
Each diffused sequence is then reshaped into an key matrix.
4.3. DNA-Domain Chained Encryption
Step 7: Position-dependent DNA encoding. Each padded color channel and its corresponding key matrix are partitioned into non-overlapping blocks. Every 8-bit value is divided into four two-bit groups and encoded as a four-symbol DNA sequence. One of the eight admissible DNA coding rules is selected from the position-dependent rule sequence. The RGB channels adopt , , and , whereas each key matrix uses its corresponding key-DNA rule sequence.
Step 8: Dynamic-IV CBC-like DNA operation. For , a four-base initial vector is regenerated from . A logistic perturbation sequence is formed as
For block t, the two dynamic operation indices are
The ciphertext DNA block is computed in two stages:
The first chained input is the repeated block-sized representation of , and each subsequent chained input is the preceding ciphertext block. Although the helper function defines five DNA operations, the modulo-four update in Equation (32) selects operations 1–4 on the encryption path. Operation 5 is adopted by the inverse routine when reversing operation 4. The generated DNA strings are then decoded with the corresponding image-DNA rules.
4.4. Post-Processing, Authentication, and Decryption
Step 9: Two-stage spatial permutation and ciphertext generation. For every decoded color channel, the first spatial permutation applies descending row-sort and column-sort indices from and , respectively. The second permutation applies ascending row-sort and column-sort indices from and , respectively. The resulting values are clipped to , cast to uint8, and concatenated to form the RGB ciphertext image. The overall encryption process is as shown in the Algorithm 2.
| Algorithm 2 Overall Encryption Pipeline |
|
Step 10: Authenticated metadata and inverse recovery. The implementation stores the version identifier, , , , dimensions, padding and block parameters, and transient length in params. These values, the ciphertext, and the binary representation of both external chaotic parameter groups are authenticated by
The tag is verified prior to decryption. The receiver then regenerates the chaotic seeds, IVs, sequences, and key matrices; inverts the two spatial permutations and DNA operations; reverts the initial-vector permutations; and removes the redundant edge. A modified ciphertext, modified metadata, or an incorrect external configuration triggers authentication failure before the inverse transformations are performed. The decryption process is as shown in the Algorithm 3.
| Algorithm 3 Authenticated Decryption Pipeline |
|
Detailed low-level sub-routines including STLEM iteration, DNA encoding/decoding, DNA arithmetic operations and inverse-operation lookup are provided in Supplementary Material Algorithms S1–S4.
5. Simulation Results and Security Analysis
The proposed algorithm was implemented in MATLAB R2020a and evaluated using standard color images of size and , including Peppers, Airplane, Baboon, Boats, Barbara, and House. Figure 7 presents representative plaintext, ciphertext, and correctly decrypted images. The cipher images exhibit a noise-like appearance, whereas the plaintext images are recovered exactly with valid secret inputs.
Figure 7.
Encryption and decryption results for multiple standard test images. (a,d,g,j,m,p) Plain images of Airplane, Baboon, Lena, Boat, House, and Woman; (b,e,h,k,n,q) Encrypted ciphertext images; (c,f,i,l,o,r) Decrypted images.
5.1. Simulation Settings and Authentication Policy
All numerical simulations, security tests, and performance evaluations are implemented in MATLAB R2020a. To guarantee full reproducibility of all experimental results presented in this manuscript, we explicitly report the fixed secret parameters adopted throughout our tests. The 256-bit master key is given as the 64-character hexadecimal string 83036DC51D99A0F48F7E13566111B7ECE888CFD7555FE7E32C129FAFE419BB3C. For the chaos-parameter groups, we assign and with and , respectively. All selected chaos parameters lie within the revised admissible intervals , , , and .
All chaotic iterations use IEEE-754 double-precision floating-point arithmetic. A fixed transient discard length iterations is applied before collecting chaotic output samples. Standard test color images Peppers, Airplane, Baboon, Boat, Barbara and House with resolution and are adopted for evaluation.
Authentication policy note. Under normal decryption workflow, HMAC-SHA-256 tag verification is always executed before any decryption operation. Ciphertext tampering, noise corruption, cropping-damaged ciphertext or wrong secret inputs will trigger authentication failure and reject decryption directly. For noise-attack, cropping-attack and hybrid-attack experiments in this paper, the authentication check is manually bypassed only for observing error-propagation characteristics. This bypass is only for simulation analysis purposes and does not represent the secure default behavior of the cryptosystem.
Unless otherwise stated, HMAC-SHA-256 verification is performed before decryption. Thus, incorrect secret inputs or modified ciphertexts cause authentication failure and rejection in normal operation. Authentication is bypassed only in four diagnostic tests: (i) wrong-key or wrong-parameter visualization within the key-sensitivity test; (ii) cropping-corruption analysis; (iii) noise-corruption analysis; (iv) hybrid-tampering analysis. The bypassed decryptions are used solely to visualize sensitivity and error-propagation behavior and do not represent normal operation.
In the key-sensitivity test, decryption using the nominal secret inputs and decryption using each perturbed configuration with its corresponding newly generated ciphertext are performed with authentication verification enabled. The bypass applies only when the nominal ciphertext is deliberately decrypted using an incorrect master key or perturbed chaos parameter. Similarly, the cropping, noise, and hybrid-tampering experiments bypass authentication only to quantify the error-propagation behavior of the underlying image-decryption procedure. Under normal operation, all such altered ciphertexts are rejected before decryption.
The key-space analysis does not involve ciphertext decryption. The chosen-plaintext test decrypts each newly generated ciphertext using its valid ciphertext–tag pair with authentication enabled. Histogram, adjacent-pixel correlation, and information-entropy analyses operate directly on ciphertext data. For the differential-attack test, one plaintext sample is modified and the resulting valid ciphertexts are compared using NPCR and UACI; therefore, authentication verification is not bypassed.
5.2. Key Space
The secret configuration of the proposed encryption scheme consists of a 256-bit master key and two independent chaos-parameter groups,
where
For both chaos-parameter groups, the admissible intervals are defined as
A finite numerical key-space estimate requires an explicit parameter quantization rule. Here, each chaos parameter is assumed to be selected independently from its admissible interval with resolution . Therefore, the numbers of selectable values are
Substituting the interval lengths:
Accordingly, the key space contributed by one chaos-parameter group is
Convert to base-2 representation:
Since two independent chaos-parameter groups are employed, the overall key space is calculated as
The salt, nonce, plaintext hash, HMAC-SHA-256-derived chaotic initial states, DNA initial vectors, dynamic DNA encoding and operation rules, perturbation sequence, and authentication tag are not counted as independent secret components. These quantities are either public metadata or are deterministically derived from the master key and chaos parameters; therefore, including them would double-count the secret entropy.
Hence, under the stated key-generation and quantization assumptions, the key space is larger than , conventionally reported as approximately . This key space is substantially larger than the commonly accepted threshold against exhaustive-search attacks.
The above value represents the nominal key space under ideal infinite-precision arithmetic. In practical MATLAB implementations, all chaotic iterations are performed using 64-bit double-precision floating-point numbers, which provide about 15–16 significant decimal digits. Finite-precision arithmetic introduces two well-known side-effects for chaotic maps: orbit degeneration, periodicity re-appearance, and possible merging of distinct trajectories. Consequently, the effective key space is smaller than the nominal theoretical value.
Several countermeasures are embedded within the proposed encryption framework to alleviate finite-precision induced dynamical degradation. Prior to extracting usable chaotic sequences, a transient of 1000 iterations is discarded to suppress numerical artifacts originating from quantized initial conditions. Rather than being directly provided by users, the chaotic initial seeds are deterministically derived through HMAC-SHA-256, combining the 256-bit master key, plaintext hash, salt, and nonce. This derivation mechanism distributes secret entropy uniformly across initial states and prevents the adoption of ill-conditioned starting values that could degrade chaotic behavior. Furthermore, the utilization of two independent chaos-parameter groups for chaotic sequence generation and key-matrix construction raises the computational complexity of partial-key recovery attempts, further strengthening resistance against brute-force cryptanalysis under finite-precision arithmetic.
Even considering the shrinkage caused by finite-precision dynamics, the effective key space of the proposed scheme remains significantly beyond , which is computationally infeasible for brute-force exhaustive search under current computing capabilities.
5.3. Key Sensitivity
A secure encryption system is required to exhibit high key-sensitivity performance. Specifically, a reliable cryptosystem must be extremely sensitive to tiny variations in secret parameters. For the proposed image encryption scheme, key sensitivity means that a slight modification to the secret configuration produces completely different encryption or decryption outputs. This property serves as a crucial criterion for evaluating the security of the designed encryption algorithm. Consistent with most existing related studies, tiny perturbations are introduced to the secret parameters for key-sensitivity testing.
Figure 8 illustrates the decryption results obtained using the correct secret configuration and slightly perturbed incorrect parameters. The experimental results demonstrate that such minor parameter variations lead to dramatically different decrypted images. Decrypted outputs obtained with perturbed keys are completely unrecognizable and bear no resemblance to the original plaintext image. Therefore, the proposed algorithm possesses excellent key sensitivity, and accurate plaintext recovery via key guessing is infeasible.
Figure 8.
Visual assessment of master-key and chaos-parameter sensitivity of the proposed encryption scheme. (a) Original plaintext image; (b) ciphertext generated using the nominal secret inputs; (c) correctly decrypted image. Panel (d) shows the decryption result after flipping the least significant bit of the first byte of the 256-bit master key. Panels (e–h) show the results obtained by individually perturbing , , , and , respectively, in the first chaos-parameter group; panels (i–l) show the corresponding results obtained by perturbing , , , and in the second group. Each chaos parameter is perturbed by . For visualization only, authentication verification is bypassed in panels (d–l).
5.4. Statistic Analysis
5.4.1. Histogram
Pixel intensity distribution of an image can be intuitively reflected by its histogram. Natural plaintext images typically present irregular and fluctuating histogram distributions with distinct pixel-concentration characteristics, which contain abundant valid image information. After image encryption, the histogram of the cipher image is expected to exhibit a flat and uniform distribution. Such uniform histogram features can effectively resist statistical-histogram attacks, which constitute a vital indicator of excellent encryption performance. Figure 9 compares the histograms of the original Peppers image and its corresponding encrypted image. Apparently, the original image possesses a fluctuating and uneven histogram distribution, whereas the cipher image shows a highly uniform histogram. This uniform pixel distribution verifies the favorable security performance of the proposed encryption scheme.
Figure 9.
RGB-channel histograms of the original and encrypted images: (a–c) original image; (d–f) encrypted image.
To further verify the pixel-distribution uniformity of encrypted images, this study employs the chi-square test for quantitative evaluation of encryption performance. As a classical statistical-analysis approach for distribution-consistency assessment, the test is particularly applicable to validating whether the pixel distribution of cipher images conforms to an ideal uniform distribution. The mathematical formula of the test is presented in Equation (42).
In the test model, denotes the observed pixel number corresponding to the i-th grayscale level, and N represents the total number of image pixels. Accordingly, is defined as the theoretical pixel count of each grayscale level under an ideal uniform distribution. In this statistical-evaluation experiment, a standard significance level of is set for hypothesis testing, and the degree of freedom corresponding to the pixel grayscale-level distribution test is determined to be 255. According to the standard chi-square distribution table and numerical calculation, the corresponding critical chi-square threshold under the above test conditions is 293.2478. The test judgment criterion is as follows: if the calculated chi-square statistical value of the encrypted image is less than the critical threshold, the null hypothesis is accepted, indicating that the pixel grayscale-value distribution of the encrypted image conforms to a uniform distribution in a statistical sense.
To fully validate the universal effectiveness and robustness of the proposed image encryption algorithm, comprehensive chi-square () statistical tests are conducted on a large number of test samples in this work. The test dataset covers multiple standard plaintext color images with different resolutions and distinct texture features; all corresponding ciphertext images generated by the proposed encryption scheme are included for comparative analysis. Quantitative statistical test results for all sample images are systematically summarized in Table 5. It can be clearly observed from the statistical data that the chi-square values of all tested encrypted images are significantly lower than the preset critical threshold of 293.2478, with no sample exceeding the threshold. These consistent experimental results fully demonstrate that the proposed encryption algorithm can thoroughly break the strong correlation and regular pixel-distribution rules existing in original plaintext images. The excellent pixel uniformity further proves that the proposed scheme possesses reliable anti-statistical-attack performance.
Table 5.
test results for plaintext and ciphertext images.
5.4.2. Correlation Analysis of Adjacent Pixels
As a classic statistical tool, correlation analysis quantifies the correlation and similarity between datasets. In image-encryption research, it is widely adopted to assess the randomness and security of ciphertext images. Plaintext images typically exhibit strong correlation among adjacent pixels; this property may be exploited by adversaries for statistical cryptanalysis. Therefore, eliminating such neighboring-pixel correlation serves as an important security metric for image-encryption algorithms. The correlation coefficient is computed according to Equation (43):
where x and y denote pixel-intensity sequences of adjacent pixels. is the covariance, while and are the variances of x and y, respectively.
Figure 10 plots adjacent-pixel correlation distributions along horizontal, vertical, and diagonal directions for the plaintext and ciphertext of the Peppers image. Scatter plots for the R, G, and B channels of the plaintext exhibit obvious linear trends, which reflect strong spatial correlation between neighboring pixels. By contrast, ciphertext pixels are uniformly distributed without observable patterns, demonstrating that the proposed encryption effectively breaks the inherent spatial correlation among adjacent pixels.
Figure 10.
Pixel-pair distributions of the original and encrypted images in the horizontal, vertical, and diagonal directions: (a–c) original image, horizontal direction; (d–f) encrypted image, horizontal direction; (g–i) original image, vertical direction; (j–l) encrypted image, vertical direction; (m–o) original image, diagonal direction; (p–r) encrypted image, diagonal direction.
As summarized in Table 6, the proposed algorithm produces near-zero correlation coefficients across all RGB channels for horizontal, vertical, and diagonal directions. More precisely, coefficients lie in the range of to , and their absolute values are bounded by . The mean absolute correlation coefficient over the nine channel-direction combinations equals , outperforming the competing schemes from [37,38,39,40], whose respective mean values are , , , and . Even though some individual coefficients from competing methods are also close to zero, our scheme achieves the lowest overall correlation. These observations confirm that the proposed encryption suppresses spatial dependence between adjacent pixels and mitigates plaintext statistical-information leakage.
Table 6.
Correlation comparison of Peppers image encrypted by different algorithms.
5.4.3. Information Entropy
As an essential statistical metric, information entropy quantifies the randomness and complexity of images and has become a standard evaluation criterion for image encryption security. In an ideal encrypted image, the entropy of every color channel is nearly equal to the theoretical upper limit of 8, demonstrating outstanding unpredictability and strong resistance to various attacks. The computational formula for information entropy is presented in Equation (44):
where represents the occurrence probability of symbol . n is the number of bits required to represent message m, and corresponds to the total number of distinguishable symbols.
Information entropy is used to quantify the uncertainty of the ciphertext pixel-value distribution. For an 8-bit image channel, the theoretical maximum entropy is 8 bits. Table 7 reports the information entropy values of the R, G, and B channels for six encrypted test images with resolutions of and .
Table 7.
Information entropy of encrypted images.
All 18 channel-wise entropy values lie between and , and the overall mean entropy is . The largest deviation from the theoretical maximum is only . In particular, consistently high entropy values are obtained for images with different textures, brightness distributions, and resolutions, indicating that the proposed scheme produces ciphertexts with stable randomness properties and a pixel-value distribution close to uniform.
These near-ideal entropy values suggest that the ciphertext reveals little statistical information about the plaintext intensity distribution and is therefore less susceptible to histogram-based statistical analysis. Together with the adjacent-pixel correlation results, the entropy analysis supports the statistical security of the proposed color-image encryption method.
To further evaluate the randomness and unpredictability of the proposed algorithm, we selected five representative state-of-the-art schemes from recent literature for comparative analysis. As shown in Table 8, the entropy values of the three channels are 7.9994, 7.9995, and 7.9995 for the proposed scheme, which are extremely close to the theoretical upper bound of 8.0. In terms of information entropy, the proposed method achieves superior randomness and cross-channel consistency over peer algorithms as the entropy values of red, green, and blue channels are close to the theoretical maximum of 8 and exhibit minor discrepancies across three channels, which reflects favorable statistical properties for image encryption.
Table 8.
Information entropy comparison of encrypted images using different algorithms.
5.5. Differential Attack
Differential cryptanalysis is a prevalent and effective attack method against image encryption schemes. It operates by imposing a minimal single-pixel perturbation on the original plaintext image and analyzing the resulting deviation of the ciphertext. Statistical analysis of these subtle changes enables adversaries to infer the internal operating mechanism and key information of the encryption system. Accordingly, an encryption algorithm that can generate significant ciphertext differences in response to trivial plaintext variations possesses robust resistance to differential attacks. To objectively quantify the plaintext sensitivity of encryption algorithms, NPCR and UACI are employed as standard evaluation indices. NPCR characterizes the proportion of varied pixels at corresponding positions of ciphertext images, whereas UACI quantifies the average magnitude of pixel differences. The theoretical ideal values of NPCR and UACI are 99.6094% and 33.4635%, respectively, and their mathematical formulas are given in Equation (45).
In the calculation process, and respectively represent the pixel value of the original encrypted image at position and the pixel value of the encrypted image after a single-pixel perturbation at the same position, and denotes the total number of pixels in the test image. Table 9 summarizes the theoretical reference ranges of NPCR and UACI for images with different sizes at a significance level of , and these authoritative baseline data originate from the classic work by Wu and Noonan [44].
Table 9.
Theoretical NPCR and UACI values for different image sizes.
To evaluate the plaintext sensitivity and differential-attack resistance of the proposed image encryption algorithm, NPCR and UACI are utilized for quantitative security evaluation. Table 10 and Table 11 summarize the single-channel and average NPCR and UACI results on five standard test images, including -sized Airplane, House, Boats and Barbara, as well as -sized Baboon and Peppers. The diversified resolutions and texture features of these images facilitate a comprehensive evaluation of the algorithm’s generalization capability. For 8-bit RGB images, the theoretical optimal NPCR and UACI values are 99.6094% and 33.4635%, respectively. Experimental results reveal that our scheme achieves average NPCR ranging from 99.5715% to 99.6386% and UACI from 33.3319% to 33.5129% over all test images. All red, green, and blue channels satisfy the security thresholds. Such ideal and consistent metric values demonstrate that minor pixel perturbations in plaintext images can induce substantial changes in ciphertexts, which suggests favorable plaintext sensitivity and desirable statistical performance against differential attacks for the proposed algorithm.
Table 10.
Differential Attack: NPCR (%).
Table 11.
Differential Attack: UACI (%).
For further validation of differential-attack resistance, the NPCR and UACI results of the proposed scheme are compared with those of three representative image-encryption methods on the standard Peppers image, as reported in Table 12 and Table 13. The proposed scheme achieves an average NPCR of , which differs from the theoretical value of by only percentage points, as does the scheme in [45]. Moreover, the NPCR values of the three color channels remain within the narrow interval from to , indicating that a one-pixel plaintext modification propagates to nearly all ciphertext pixels in each channel. For UACI, the proposed method obtains an average value of , which is close to the theoretical expectation of . Although some compared methods exhibit a slightly smaller deviation from the theoretical UACI value, the proposed scheme remains within the expected random-cipher range and outperforms the method in [41] in terms of proximity to the ideal UACI value. Taken together, the results demonstrate that the proposed scheme provides strong and competitive differential-attack resistance, with particularly near-optimal NPCR performance across the RGB channels.
Table 12.
NPCR (%) comparison on Peppers image with different algorithms.
Table 13.
UACI (%) comparison on Peppers image with different algorithms.
5.6. Noise Attack Resistance
Note that the authentication check is manually bypassed in these noise-corruption experiments, as described in Section 5.1.
In the field of information encryption, noise interference is a common form of external disturbance, among which salt-and-pepper noise is one of the most typical threats to image encryption systems. This type of noise randomly generates discrete black-and-white pixel outliers within the encrypted image, severely degrading visual clarity and destroying image texture features. In practical transmission and application scenarios, qualified image encryption algorithms are required to possess robust anti-noise capability so that the decrypted image can effectively tolerate salt-and-pepper noise interference and recover plaintext information with minimal distortion.
To fully validate the noise-resistance capability of the proposed encryption scheme, we conduct systematic noise-interference experiments on the standard Peppers test image. Two representative noise types in digital image processing, salt-and-pepper noise and Gaussian noise, are selected to simulate complex real-world interference environments, and multiple noise intensities are set for graded comparative tests. In the salt-and-pepper noise experiment, four progressive noise densities of 0.001, 0.01, 0.05, and 0.1 are superimposed on encrypted images to simulate different degrees of impulse-noise pollution. The corresponding visual results of decrypted images under varying noise intensities are demonstrated in Figure 11. Meanwhile, zero-mean Gaussian noise with four gradient variance levels of 0.001, 0.005, 0.008, and 0.01 is introduced into encrypted images to simulate continuous random-noise interference. The decrypted image outcomes under Gaussian-noise interference at different intensities are presented in Figure 12. These graded experimental settings cover slight, moderate, and severe noise-interference conditions, which can comprehensively reflect the stable anti-interference performance of the proposed algorithm in complex practical scenarios.
Figure 11.
Salt-and-pepper noise attack simulation results. (a–d) Cipher images contaminated by salt-and-pepper noise with noise densities of 0.001, 0.01, 0.05 and 0.1, respectively. (e–h) Corresponding decrypted images.
Figure 12.
Gaussian noise attack test results. (a–d) Cipher images contaminated by Gaussian noise with variances of 0.001, 0.005, 0.008 and 0.01, respectively. (e–h) The corresponding decrypted images.
Visual observation indicates that noise artifacts in decrypted images gradually become prominent as noise intensity increases. Nevertheless, the proposed algorithm maintains favorable image recognizability under low- and medium-noise levels. Notably, the decrypted image retains clear visual features even when the salt-and-pepper noise density rises to 0.1. For Gaussian-noise interference, the image remains distinguishable at a variance of 0.005. Although further increasing Gaussian-noise intensity blurs partial image details, the overall structural contours can still be clearly identified. These intuitive phenomena preliminarily demonstrate the excellent robustness of the proposed scheme against severe noise interference.
To quantitatively assess the noise robustness of the proposed encryption scheme, peak signal-to-noise ratio (PSNR) and mean square error (MSE) are adopted as evaluation metrics. Specifically, a higher PSNR value corresponds to better fidelity of the decrypted image, while a lower MSE value indicates smaller pixel deviation between the original and decrypted images, reflecting superior image-restoration quality. The calculation formulas for PSNR and MSE are defined in Equation (46).
where denotes the pixel value of the original plaintext image, represents the pixel value of the corresponding decrypted image, and m and n refer to the height and width of the test image, respectively.
The PSNR and MSE values of the decrypted image under different noise intensities are summarized in Table 14 and Table 15. Quantitative analysis shows that PSNR values decline gradually while MSE values increase steadily as noise intensity grows, which objectively reflects the negative impact of noise interference on image-restoration quality. More importantly, even under high-intensity noise perturbation, the decrypted images maintain acceptable visual quality and retain complete basic structural information. The combination of visual observation and numerical results fully verifies that the proposed image encryption algorithm possesses outstanding anti-noise performance and reliable fault-tolerant capability, demonstrating good practical applicability for complex noisy transmission environments.
Table 14.
PSNR and MSE values of decrypted images under different salt-and-pepper noise densities.
Table 15.
PSNR and MSE values of decrypted images under different Gaussian noise variances.
5.7. Cropping Attack
As stated in Section 5.1, authentication verification is deliberately disabled for visualizing decryption outputs under cropped ciphertext.
During image transmission and storage, partial data loss often occurs due to channel interference, equipment failure, or malicious attacks, which severely degrades image decryption performance. To evaluate the robustness of the proposed image encryption algorithm against incomplete data, we perform cropping-attack experiments to simulate partial occlusion and data loss of encrypted images during transmission.
Taking the Peppers image as the test object, encrypted images are cropped with different area ratios. To improve experimental validity and better simulate real-world attack scenarios, the same regional cropping operation is applied to all R, G, and B channels to completely erase local ciphertext information within the selected region. Random cropping attacks are performed on ciphertext images, where the lost area fractions are set to 1%, 5%, 10%, and 20% of the total image area. This experimental setup comprehensively verifies the decryption and reconstruction capability of the algorithm under data-loss conditions ranging from slight to severe. All cropping positions are randomly selected, and the damaged ciphertext images are then decrypted. The four cropping fractions correspond to four attack-intensity levels: slight interference, moderate tampering, severe damage, and extreme data loss.
As illustrated in Figure 13, decrypted images retain satisfactory structural integrity and clarity under low cropping ratios, and the main image content can be accurately reconstructed. As the cropping area increases, the overall contour of the decrypted image remains recognizable, whereas fine details become increasingly blurred and partial local information suffers irreversible loss.
Figure 13.
Results of the random-cropping attack. Ciphertext images subjected to random rectangular cropping with area-loss ratios of (a) 1%, (b) 5%, (c) 10%, and (d) 20%, respectively; (e–h) the corresponding decrypted images.
To further quantitatively analyze the algorithm’s anti-cropping performance, the peak signal-to-noise ratio (PSNR) and structural similarity index measure (SSIM) of decrypted images under different cropping ratios are calculated. The formula for SSIM calculation is defined in Equation (47):
where x and y represent pixel blocks of the decrypted image and the original image within a sliding window (default size: ), respectively. and denote the mean pixel values of the two windows, and are the corresponding pixel variances, and refers to the covariance between the two windows. The parameters and are stability constants introduced to avoid division-by-zero errors, where , , and corresponds to the dynamic range of 8-bit grayscale images. The final SSIM value is computed as the arithmetic mean over all sliding windows, namely the mean SSIM (MSSIM), which ranges from . A value closer to 1 indicates higher structural similarity between the decrypted and original images.
Table 16 lists the variation trends of SSIM and PSNR values with increasing cropping ratio. As the cropping ratio rises, the structural integrity and pixel accuracy of the decrypted image gradually degrade, leading to an overall decrease in both SSIM and PSNR values. Under a low cropping fraction (1%), the decrypted image maintains relatively high SSIM and PSNR values, demonstrating the favorable performance of the proposed algorithm. The experimental results verify that the proposed encryption algorithm possesses excellent robustness against cropping attacks of varying severities. Under slight and moderate data-loss conditions, the algorithm can effectively reconstruct structural and detailed features of the original image, meeting the practical demands for secure and robust image transmission.
Table 16.
PSNR and SSIM values of Peppers decrypted images under different cropping ratios.
5.8. Hybrid Attack
Similar to noise and cropping tests, the HMAC authentication check is bypassed to observe decryption behavior under composite hybrid tampering.
To further validate the robustness of the proposed image encryption algorithm against complex adversarial scenarios, a hybrid cropping-noise attack experiment is designed to simulate practical composite attacks in real-world transmission environments. Different levels of spatial cropping and salt-and-pepper noise are superimposed to construct diverse hybrid attack conditions. In this experiment, the standard Peppers test image is adopted as the plaintext image. Two cropping ratios (5% and 10%) and three salt-and-pepper noise intensities (1%, 2%, and 5%) are set, forming a total of six hybrid attack scenarios. The corresponding encrypted images are decrypted, and the decryption quality is quantitatively evaluated using the peak signal-to-noise ratio (PSNR). Detailed experimental results are presented in Figure 14 and Table 17.
Figure 14.
Hybrid-attack results under fixed rectangular cropping (i.e., removing a rectangular block) of the upper-left ciphertext region. (a) Original image. Panels (b,d,f) show ciphertext images subjected to cropping and salt-and-pepper noise densities of , , and , respectively; panels (c,e,g) show the corresponding decrypted images. Panels (h,j,l) show ciphertext images subjected to cropping and the same noise densities, respectively; panels (i,k,m) show the corresponding decrypted images.
Table 17.
PSNR values of Peppers decrypted images under hybrid cropping-noise attack conditions. Columns denote: C5N1 (5% cropping + 1% noise), C5N2 (5% cropping + 2% noise), C5N5 (5% cropping + 5% noise), C10N1 (10% cropping + 1% noise), C10N2 (10% cropping + 2% noise), C10N5 (10% cropping + 5% noise).
The experimental results demonstrate that decrypted images retain favorable visual quality and stable objective metrics even under severe hybrid attacks. Specifically, for a fixed cropping ratio of 5%, the PSNR value gradually decreases from 17.73 dB to 15.50 dB as the noise intensity increases from 1% to 5%. Although image details are disturbed by noise interference, the main structural features of the decrypted image remain clearly recognizable. When the cropping ratio increases to 10%, the PSNR value further declines to 13.98 dB under 5% noise interference. Nevertheless, the overall outline and color information of the original image can still be effectively recovered. These results show that the proposed algorithm can resist spatial information loss caused by cropping and pixel perturbation induced by noise. It is verified that the proposed encryption algorithm exhibits excellent robustness against composite hybrid attacks.
5.9. Chosen Plaintext Attack
In image encryption research, resistance against classical cryptanalysis attacks is a crucial criterion for evaluating the practical security of encryption algorithms. Typical attack models include the ciphertext-only attack (COA), known-plaintext attack (KPA), chosen-ciphertext attack (CCA), and chosen-plaintext attack (CPA). Among these attack types, CPA is widely regarded as the most powerful and challenging adversarial strategy. An encryption scheme that can effectively resist CPA is generally considered capable of withstanding the other three categories of classical attacks [43]. In real-world communication scenarios, adversaries may gain access to encryption equipment and arbitrarily generate plaintext-ciphertext pairs, which makes CPA a realistic security threat. In a CPA scenario, attackers can freely construct arbitrary plaintext images and obtain their corresponding ciphertexts, which allows them to explore potential mapping relationships between plaintext and ciphertext domains. The core threat of CPA is that attackers may deduce encryption keys or decrypt unknown ciphertexts by exploiting self-constructed plaintext-ciphertext pairs.
To qualitatively evaluate the CPA resistance of the proposed image-encryption scheme, four representative plaintext images with distinct intensity distributions and spatial structures are selected: an all-black image, an all-white image, a checkerboard image, and a color-gradient image, as shown in Figure 15a–d. These inputs constitute challenging and highly distinguishable test patterns. Specifically, the all-black and all-white images exhibit uniform but opposite pixel distributions; the checkerboard image contains prominent periodic spatial features; and the color-gradient image presents smooth monotonic color transition across the image plane. Such deliberately constructed test images help verify whether plaintext features can be inferred from the resulting ciphertexts.
Figure 15.
Visual results for the chosen-plaintext test: (a–d) all-black, all-white, checkerboard, and color-gradient plaintext images, respectively; (e–h) their corresponding ciphertext images; (i–l) the corresponding decrypted images.
The corresponding encryption results are presented in Figure 15e–h. Although the four plaintext images differ greatly in visual appearance and statistical properties, their ciphertexts all show noise-like random distributions. No uniform dark or bright regions can be observed in ciphertexts generated from all-black and all-white inputs. Similarly, the periodic texture of the checkerboard image disappears after encryption, and the continuous color transition of the color-gradient image is completely destroyed. These observations demonstrate that the proposed scheme effectively masks spatial structures and color characteristics of the original plaintexts, preventing attackers from directly inferring plaintext content from ciphertexts. For completeness, the decrypted outputs are given in Figure 15i–l. Each decrypted image faithfully reproduces the content and structural features of its original plaintext, including uniform areas, checkerboard patterns, and smooth color gradients. This confirms the correctness and reversibility of the encryption-decryption procedure under valid secret parameters. Overall, the visual results provide qualitative evidence that the proposed algorithm hides salient plaintext features while enabling correct recovery for authorized users.
These observations preliminarily validate the favorable CPA resistance of the proposed encryption algorithm. Ciphertexts generated from different extreme plaintexts exhibit uniform random-noise characteristics and retain no valid plaintext features. Accordingly, attackers cannot extract effective rules or deduce key information from plaintext-ciphertext pairs. It further demonstrates that the proposed algorithm can defend against active adversarial attacks such as CPA and ensure reliable security for practical image transmission. To further consolidate this conclusion, information entropy is adopted as a quantitative metric to measure the randomness of ciphertexts produced under CPA conditions.
Table 18 lists the information entropy values of ciphertexts obtained under CPA tests. For the four extreme plaintext images (all-black, all-white, checkerboard, and color-gradient), the entropy values of red, green, and blue channels of their ciphertexts are very close to the theoretical maximum of 8, ranging from 7.9994 to 7.9995. Entropy remains high and stable with negligible fluctuations across different plaintext inputs and RGB channels. This indicates that the proposed encryption algorithm can effectively resist CPA. It thoroughly disrupts the intrinsic statistical features of plaintext images and produces ciphertexts with near-ideal randomness.
Table 18.
Information entropy of ciphertext images under chosen-plaintext attacks.
Our chosen-plaintext attack evaluation is an experimental simulation based on typical extreme test images. It provides empirical evidence of resistance but does not constitute a formal provable security proof. For practical deployment, the authenticated encryption mechanism (HMAC-SHA-256) is essential to reject manipulated ciphertext inputs.
5.10. Computational Complexity Analysis
The computational complexity of the proposed encryption scheme is analyzed for a single RGB image of size . The analysis excludes image input/output and visualization operations. Let s denote the edge-extension width, and let and be the padded image dimensions. According to the implementation,
Let
denote the number of pixels in one padded channel. Since the edge-extension width and the block size are bounded constants, .
During encryption, six principal chaotic sequences of length P are generated. Three sequences are employed for the initial permutation of the RGB channels, while the other three sequences are used to construct the key matrices. Since the transient iteration number is fixed, the complexity of chaotic-sequence generation is . Three additional short chaotic sequences are generated for the DNA initial vectors. Their computational cost is independent of P and therefore does not affect the asymptotic complexity.
Under the conventional comparison-based sorting model, the initial permutation requires sorting three chaotic sequences of length P, which yields a complexity of
Moreover, the two row-column permutation stages require four sorting operations. Their total complexity is
Edge processing, key-matrix construction, DNA encoding, DNA operations, diffusion, DNA decoding, plaintext hashing, and HMAC-based authentication process image or ciphertext bytes whose total amount is linear in P. Therefore, their total complexity is . The overall encryption complexity is thus given by
During decryption, the authentication tag is first verified. The algorithm then reconstructs the chaotic sequences and performs inverse row-column permutations, inverse DNA operations, inverse initial permutation, and image recovery. The same three global sorting operations and four row-column sorting operations are required. Therefore, the decryption complexity is
The algorithm stores padded RGB channels, chaotic sequences, permutation indices, key matrices, and DNA intermediate results. Although the MATLAB implementation uses cell arrays to represent DNA symbols and consequently introduces a relatively large practical memory constant, the number of stored elements grows linearly with P. Hence, the space complexity is
Since , the time and space complexities of the proposed single-image encryption scheme can be expressed as
The computational complexity of the proposed image encryption scheme is shown in the Table 19.
Table 19.
Computational complexity of the proposed image encryption scheme.
6. Conclusions
To address the limitations of conventional image-encryption algorithms in structural randomness and resistance to cryptanalytic attacks, this paper proposes a color image-encryption scheme based on a novel chaotic map and DNA-domain chained operations. Specifically, a novel one-dimensional chaotic map, termed STLEM, is constructed by fusing sine, tent, logistic and exponential nonlinear components, which are equipped with boundary-value correction rules for mitigating finite-precision floating-point numerical degradation. We systematically analyze the influences brought by modulo operations, boundary clamping and NaN/inf reset rules on chaotic dynamics. The dynamical performance of STLEM is evaluated using Lyapunov exponent analysis, bifurcation diagrams, autocorrelation analysis, permutation entropy, approximate entropy, Lempel–Ziv complexity, the 0–1 test for chaos, and NIST SP 800-22 randomness tests, together with comparisons with representative one-dimensional chaotic maps. Compared with classic one-dimensional chaotic systems, STLEM delivers larger Lyapunov exponents, wider stable chaotic parameter ranges and better sequence randomness.
Based on STLEM, a complete authenticated color image-encryption framework is developed. The scheme employs a 256-bit master key, two independent chaos parameter groups, and HMAC-SHA-256-based key derivation. A plaintext hash, a cryptographically secure random salt, and a nonce are used to derive plaintext-aware chaotic initial states, while an HMAC authentication tag is employed to verify the integrity and authenticity of the ciphertext and public metadata before decryption. Different from static global DNA coding strategies, an adaptive position-dependent DNA encoding strategy is adopted, where each pixel block dynamically selects its coding rule from chaotic outputs to reduce potential plaintext frequency-leakage risks under partial permutation-layer compromise. The encryption process integrates dynamic redundant edge embedding, multi-stage chaotic pixel permutation, adaptive position-dependent DNA encoding, DNA-domain chained CBC-like diffusion, and two-stage row-column permutation.
Numerical simulations are carried out using fixed, reproducible secret parameters provided in Section 5.1. Experimental results demonstrate that the proposed scheme produces noise-like ciphertext images and enables lossless image recovery with correct secret inputs. The scheme exhibits a large key space, near-ideal information entropy, negligible adjacent-pixel correlation, and satisfactory NPCR and UACI values. Additional experiments further validate its robustness against noise interference, data cropping and hybrid composite attacks. In addition, the authentication mechanism prevents normal decryption when the ciphertext, metadata, master key, or chaos parameters are incorrect. The proposed method has a computational complexity of and a space complexity of for a single image of size .
We also discuss the practical limitations of the presented approach. Similar to all digital chaotic cryptosystems, finite-precision floating-point orbit-shortening cannot be fully eliminated, although HMAC-based seed derivation and transient-iteration discarding are applied as mitigation measures. Moreover, our MATLAB-based prototype yields relatively high computational overhead when compared against highly-optimized standard block-cipher implementations such as AES.
When benchmarked against existing chaos-DNA color-image encryption works, our implementation has three distinct strengths. Firstly, the STLEM map supports wider stable chaotic parameter domains and superior randomness metrics relative to many traditional one-dimensional chaotic maps in existing literature. Secondly, position-dependent adaptive DNA encoding is utilized instead of fixed global DNA mapping rules, which alleviates plaintext frequency-leakage hazards if permutation layers are partially broken. Thirdly, native authenticated encryption based on HMAC-SHA-256 is tightly integrated for seed generation and ciphertext verification—a feature missing in most comparable chaos-DNA implementations—so tampered ciphertext and invalid keys can be rejected prior to decryption.
For comparison with the non-chaotic standard block cipher AES, AES-GCM is a mature hardware-accelerated primitive with well-studied provable-security assumptions, yet it treats image content as generic byte streams and lacks image-oriented optimization. Under AES-CBC mode, corrupted ciphertext blocks will produce completely garbled decrypted output. Benefiting from dynamic redundant-edge expansion, multi-stage spatial scrambling and DNA-domain chained diffusion, our cryptosystem achieves better visual recoverability under noise and cropping-induced data loss. Nevertheless, such improved robustness comes with extra computational cost. This algorithm targets specialized robust color-image communication scenarios and is not intended as a universal drop-in substitute for AES.
Future work will focus on computational-efficiency optimization, deeper formal cryptanalysis for the STLEM-based encryption pipeline, as well as hardware implementation for real-time secure color-image communication applications.
Supplementary Materials
The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/e28091015/s1. Algorithm S1: STLEM chaotic map iteration function; Algorithm S2: DNA pixel encoding function; Algorithm S3: DNA arithmetic operation ; Algorithm S4: Get inverse DNA operation index for decryption.
Author Contributions
Conceptualization, J.J.; methodology, J.J. and L.J.; software, J.J. and Y.L.; validation, J.J., L.J. and A.T.; formal analysis, J.J.; investigation, L.W. and Y.L.; resources, Y.L., A.T. and L.W.; data curation, J.J. and L.J.; writing—original draft preparation, J.J.; writing—review and editing, J.J., Y.L., and A.T.; visualization, J.J.; supervision, L.W. and A.T.; project administration, Y.L. and L.W.; funding acquisition, L.W. and 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 (62372494), the Guangdong Key Disciplines Project (2022ZDJS139), the Guangdong University Young Innovative Talents Program Project 2024 (2024KQNCX006), the Guangdong Provincial Teaching Quality and Teaching Reform Projects for Colleges and Universities (2024006), and the Internal Project of Zhuhai College of Science and Technology (4136317225).
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The original contributions presented in this study are included in the article/Supplementary Material. Further inquiries can be directed to the corresponding author.
Acknowledgments
The authors would like to express their sincere gratitude for the financial support received through the aforementioned funding sources.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Fridrich, J. Symmetric Ciphers Based on Two-Dimensional Chaotic Maps. Int. J. Bifurc. Chaos 1998, 8, 1259–1284. [Google Scholar] [CrossRef] [Scilit]
- Fetteha, M.A.; Sayed, W.S.; Said, L.A. A lightweight image encryption scheme using DNA coding and chaos. Electronics 2023, 12, 4895. [Google Scholar] [CrossRef] [Scilit]
- Shi, X.; Su, Y.; Yang, X.; Feng, W.; Zhang, X.; Chen, Z.; Wen, G.; Wen, H. Lossless frequency-domain image encryption via 3D exponential hyper-chaotic map and integer lifting wavelet transform. Axioms 2026, 15, 315. [Google Scholar] [CrossRef] [Scilit]
- Chai, X.; Gan, Z.; Lu, Y.; Zhang, M.-H.; Chen, Y. A novel color image encryption algorithm based on genetic recombination and the four-dimensional memristive hyperchaotic system. Chin. Phys. B 2016, 25, 100503. [Google Scholar] [CrossRef] [Scilit]
- Li, T.; Xu, W.; Li, G.; Song, X. A mixed coupled map lattice based on enhanced Chebyshev maps for chaotic image encryption. Eur. Phys. J. Plus 2025, 140, 931. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Chai, X.; Cao, L.; Gan, Z.; Lu, Y.; Xie, X. Exploiting 2D improved Sine-Chebyshev chaotic map and adaptive cellular automata permutation for image encryption. J. Mod. Opt. 2025, 72, 741–766. [Google Scholar] [CrossRef] [Scilit]
- Zhu, Y.; Zhu, E. A multi-image encryption algorithm based on hybrid chaotic map and computer-generated holography. AIMS Math. 2025, 10, 21209–21239. [Google Scholar] [CrossRef] [Scilit]
- Fu, Y.C.; Li, Z.H.; Huang, F.; Wang, N.; Lyu, H.R. Design of a Fast Image Encryption Algorithm Based on a Novel 2D Chaotic Map and DNA Encoding. Secur. Priv. 2025, 8, e70036. [Google Scholar] [CrossRef] [Scilit]
- Kouadra, I.; Bekkouche, T.; Ziet, L.; Mehidi, I.; Alshathri, S.; El-Shafai, W. New composite chaotic map applied to an image encryption scheme in cybersecurity applications. IEEE Access 2025, 13, 70676–70690. [Google Scholar] [CrossRef] [Scilit]
- Mohammed Ibrahim, M.; Venkatesan, R. Image encryption using novel chaotic map and cellular automata dynamics. RAIRO-Theor. Inform. Appl. 2025, 59, 2. [Google Scholar] [CrossRef] [Scilit]
- Kumar, S.; Sharma, D. Image Encryption with a Hybrid Chaotic Map for Improved Security. In Proceedings of Eighth International Conference on Information System Design and Intelligent Applications; Springer Nature Singapore: Singapore, 2025. [Google Scholar]
- Zhou, W.; Li, X.; Xin, Z. Image Encryption Algorithm Based on an Improved Tent Map and Dynamic DNA Coding. Entropy 2025, 27, 796. [Google Scholar] [CrossRef] [Scilit]
- Xu, X.L.; Song, X.G.; Liu, S.H.; Zhou, N.R.; Wang, M.M. New 2D hyperchaotic Cubic-Tent map and improved 3D Hilbert diffusion for image encryption. Appl. Intell. 2025, 55, 590. [Google Scholar] [CrossRef] [Scilit]
- Niu, S.; Xue, R.; Ding, C. A dual image encryption method based on improved Henon mapping and improved Logistic mapping. Multimed. Tools Appl. 2025, 84, 8651–8671. [Google Scholar] [CrossRef] [Scilit]
- Ding, S.; Shi, F.; Erkan, U.; Toktas, A.; Li, Q.; Wang, C.; Gao, S.; Mou, J. Design of a three-dimensional logistic map and its application to seafood image encryption. J. Supercomput. 2026, 82, 225. [Google Scholar] [CrossRef] [Scilit]
- Sun, S.; Yang, W.; Yin, Y.; Tian, X.; Li, G.; Deng, X. A color image encryption scheme utilizing a logistic-sine chaotic map and cellular automata. Sci. Rep. 2025, 15, 21603. [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]
- Gao, S.; Zhang, Z.; Iu, H.H.C.; Ding, S.; Mou, J.; Erkan, U.; Toktas, A.; Li, Q.; Wang, C.; Cao, Y. A Parallel Color Image Encryption Algorithm Based on a 2-D Logistic-Rulkov Neuron Map. IEEE Internet Things J. 2025, 12, 18115–18124. [Google Scholar] [CrossRef] [Scilit]
- Xu, B.; Ye, X.; Wang, X.; Zhang, Z. Image encryption scheme based on compressed sensing and fractional quantum logistic-tent map. Cybersecurity 2025, 8, 56. [Google Scholar] [CrossRef] [Scilit]
- Shakir, H.R.; Mehdi, S.A.A.; Hattab, A.A. A dynamic S-box generation based on a hybrid method of new chaotic system and DNA computing. Telkomnika 2022, 20, 1230–1238. [Google Scholar] [CrossRef] [Scilit]
- Iliyasu, M.A.; Abisoye, O.A.; Bashir, S.A.; Ojeniyi, J.A. A review of DNA cryptographic approaches. In Proceedings of the 2020 IEEE 2nd International Conference on Cyberspace (CYBER Nigeria), Abuja, Nigeria, 23–25 February 2021. [Google Scholar]
- Vinay, S.; Pujar, A.; Kedlaya, H.; Shahapur, V.S. Implementation of DNA cryptography based on dynamic DNA sequence table using cloud computing. Int. J. Eng. Res. Technol. 2019, 7, 1–4. [Google Scholar]
- Dua, M.; Bhogal, R.; Dua, S.; Chakravarty, N. Satellite image encryption using amalgamation of randomized three chaotic maps and DNA encoding. Phys. Scr. 2025, 100, 015241. [Google Scholar] [CrossRef] [Scilit]
- Abdelaal, M.A.; Moustafa, A.I.; Kasban, H.; Saleh, H.; Abdallah, H.A.; Afifi, M.Y.I. DNA-inspired lightweight cryptographic algorithm for secure and efficient image encryption. Sensors 2025, 25, 2322. [Google Scholar] [CrossRef] [Scilit]
- Qiu, D.; Zhang, T.; Liu, J.; Liu, S.; He, P. An innovative image encryption algorithm based on the DNAS_box and hyperchaos. Entropy 2025, 27, 239. [Google Scholar] [CrossRef] [Scilit]
- Dua, M.; Kumar, R.; Dua, S.; Chakravarty, N. A novel one-dimensional chaotic map, novel diffusion and DNA encoding-based image encryption scheme. Int. J. Dyn. Control 2025, 13, 166. [Google Scholar] [CrossRef] [Scilit]
- Dua, M.; Bhogal, R.; Dua, S. A novel sine of logistic and tangent chaotic map and dna encoding based image encryption scheme. Int. J. Syst. Assur. Eng. Manag. 2026, 17, 1–18. [Google Scholar] [CrossRef] [Scilit]
- Amine, S.; Koulouh, F.; Es-Sabry, M.; El Akkad, N.; El-Shafai, W.; Azar, A.T.; Hussein, S.A. An Enhanced Secure and Fast Image Encryption Algorithm Based on Chaos Systems and DNA Coding. Eng. Technol. Appl. Sci. Res. 2026, 16, 35094–35111. [Google Scholar] [CrossRef] [Scilit]
- Yadav, A.; Jaipuriyar, A.; Roy, S.; Rawat, U. A lossless image encryption technique using chaotic map and DNA encoding. Multimed. Tools Appl. 2025, 84, 42851–42873. [Google Scholar] [CrossRef] [Scilit]
- Yan, X.; Hu, Q.; Teng, L. A novel color image encryption method based on new three-dimensional chaotic mapping and DNA coding. Nonlinear Dyn. 2025, 113, 1799–1826. [Google Scholar] [CrossRef] [Scilit]
- Kulsoom, A.; Xiao, D.; 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] [CrossRef] [Scilit]
- Ran, W.; Wei, P.; Duan, A. Image encryption algorithm based on multi-chaotic mapping and DNA coding. Comput. Eng. Des. 2018, 39, 2020–2026. [Google Scholar]
- Gao, S.; Iu, H.H.C.; Erkan, U.; Simsek, C.; Toktas, A.; Cao, Y.; Wu, R.; Mou, J.; Li, Q.; Wang, C. A 3D memristive cubic map with dual discrete memristors: Design, implementation, and application in image encryption. IEEE Trans. Circuits Syst. Video Technol. 2025, 35, 7706–7718. [Google Scholar] [CrossRef] [Scilit]
- IEEE Std 754-2008; IEEE Standard for Floating-Point Arithmetic. IEEE: Piscataway, NJ, USA, 2008.
- NIST SP 800-22; A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications. National Institute of Standards and Technology: Gaithersburg, MD, USA, 2010.
- Xiao, G.; Lu, M.; Qin, L.; Lai, X. New field of cryptography: DNA cryptography. Chin. Sci. Bull. 2006, 51, 1413–1420. [Google Scholar] [CrossRef] [Scilit]
- Es-Sabry, M.; El Akkad, N.; Khrissi, L.; Satori, K.; El-Shafai, W.; Altameem, T.; Rathore, R.S. An efficient 32-bit color image encryption technique using multiple chaotic maps and advanced ciphers. Egypt. Inform. J. 2024, 25, 100449. [Google Scholar] [CrossRef] [Scilit]
- Li, Q.; Chen, L. An image encryption algorithm based on 6-dimensional hyper chaotic system and DNA encoding. Multimed. Tools Appl. 2024, 83, 5351–5368. [Google Scholar] [CrossRef] [Scilit]
- Sheng, Q.; Fu, C.; Lin, Z.; Chen, J.; Cao, L.; Sham, C.W. An efficient chaotic image encryption scheme using simultaneous permutation–diffusion operation. Vis. Comput. 2024, 40, 1643–1658. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.Q.; He, Y.; Li, P.; Wang, X.Y. A new color image encryption scheme based on 2DNLCML system and genetic operations. Opt. Lasers Eng. 2020, 128, 106040. [Google Scholar] [CrossRef] [Scilit]
- Elmenyawi, M.A.; Abdel Aziem, N.M.; Bahaa-Eldin, A.M. Efficient and secure color image encryption system with enhanced speed and robustness based on binary tree. Egypt. Inform. J. 2024, 27, 100487. [Google Scholar] [CrossRef] [Scilit]
- Jiang, X.; Xie, Y.; Liu, B.; Chai, J.; Ye, Y.; Song, T.; Feng, M.; Yuan, H. Image encryption based on actual chaotic mapping using optical reservoir computing. Nonlinear Dyn. 2023, 111, 15531–15555. [Google Scholar] [CrossRef] [Scilit]
- Khalil, N.; Sarhan, A.; Alshewimy, M.A.M. An efficient color/grayscale image encryption scheme based on hybrid chaotic maps. Opt. Laser Technol. 2021, 143, 107326. [Google Scholar] [CrossRef] [Scilit]
- Wu, Y.; Noonan, J.P.; Agaian, S. NPCR and UACI randomness tests for image encryption. Cyber J. Multidiscip. J. Sci. Technol. J. Sel. Areas Telecommun. (JSAT) 2011, 1, 31–38. [Google Scholar]
- 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]
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.














