Skip to Content
  • Article
  • Open Access

16 October 2026

41 Pages

Block Geometry in Chaos-Based Image Encryption: Security and Throughput Trade-Offs of a Four-Round Arnold Cat–Logistic Map Cipher

,
and
1
Department of Electrical Engineering, Al-Balqa Applied University, As Salt 19117, Jordan
2
School of Computer Science, University of Guelph, Guelph, ON N1G 2W1, Canada
3
Department of Computer Information Systems, School of Information Technology and Systems, The University of Jordan, Aqaba 77110, Jordan
*
Author to whom correspondence should be addressed.

Abstract

Image streams carried by surveillance networks, clinical imaging systems and IoT sensing platforms are routinely stored and transmitted over channels their owners do not control, so confidentiality has to be provided by the data itself rather than by the network. Chaos-based ciphers answer that need cheaply, but the block geometry of their permutation stage is usually fixed by fiat and never examined. This paper reports a four-round confusion–diffusion cipher that pairs block-wise Arnold Cat Map permutation with S-box substitution and a combined SHA-256/logistic-map XOR diffusion, and measures what the choice of block geometry actually costs and buys. Five block sizes (16 to 256) and three overlap ratios (0%, 50% and 75%) were evaluated on the 24-image Kodak Lossless True Color Image Suite against histogram, entropy, correlation, differential, key-sensitivity, keystream-randomness and integrity criteria. Overlap raised encryption time by up to 86% while leaving entropy, correlation, NPCR and UACI statistically unchanged, so the non-overlapping 128 × 128 configuration was adopted. That configuration reaches an information entropy of 7.9998 bits (pooled across the three color channels), a mean chi-square of 253.44 against an ideal of 255, adjacent-pixel correlation near zero, and differential scores of NPCR 99.61 % and UACI 33.46 % against ideals of 99.609 % and 33.464 % , with a 128-bit key space and sensitivity to parameter perturbations of 10 − 14 under a 128-bit key. Decryption is exactly lossless (MSE = 0, CC = 1) and throughput reaches a mean of 6.79 MB/s ( 10 6 bytes/s) with a keyed HMAC-SHA-256 tag that makes any ciphertext tampering detectable with overwhelming probability: across salt-and-pepper noise, Gaussian noise, occlusion and clipping at every tested level, not one damaged ciphertext passed verification.

1. Introduction

Digital images now sit inside services that people cannot easily opt out of. Traffic cameras feed congestion analytics, hospitals move radiological studies between departments and providers, remote-sensing platforms track infrastructure, and consumer IoT devices push video to cloud storage by default. Each of those streams leaves the owner’s control at some point, and once it does, confidentiality depends on the data rather than on the channel carrying it.
The images themselves frequently contain personally identifiable or operationally sensitive material [1,2]. Disclosure exposes patients, commuters, and staff; silent modification is worse, because downstream analytics inherit the tampering without any signal that something changed. Recent incidents give the scale. A French hospital exposed roughly 750,000 patient records in November 2024, with the attackers claiming access to files on more than 1.5 million people [3]. Across 2010–2019, reported healthcare breaches numbered 3051 and affected over 255 million patients [4,5], and the 2024 Change Healthcare attack alone cost UnitedHealth Group more than USD 2.3 billion [6]. Surveillance infrastructure has fared no better: in 2021, an attacker reached more than 150,000 Verkada cameras deployed in hospitals, schools, and correctional facilities [7]. The attack surface keeps growing as smart homes and IoT monitoring devices communicate over wireless and local-area links that were not designed with confidentiality in mind [8], and AI-assisted image manipulation has added provenance to the list of concerns [9].
Encryption is the direct answer to the confidentiality half of this problem. In clinical settings, it protects studies held in Picture Archiving and Communication Systems and in transit between providers [10], and supports obligations under regimes such as the Health Insurance Portability and Accountability Act [11]; for video, it keeps live and archived footage from being read by whoever intercepts it [12,13]. General-purpose block ciphers can do this, but images differ from text in ways that matter: they are large, highly redundant, strongly correlated between neighboring pixels, and often processed under real-time or embedded constraints. A practical image cipher therefore has to destroy spatial and statistical structure at a computational cost the deployment can absorb.

1.1. Chaos-Based Cryptography

Chaotic systems are deterministic yet extremely sensitive to their initial conditions and control parameters [14,15]: a minute change in a parameter sends the generated sequence somewhere else entirely. That behavior maps onto the confusion and diffusion requirements of a cipher, which is why chaotic maps have been used so widely in image encryption [16,17,18,19,20,21]. Three properties explain the appeal. Sensitivity to initial conditions gives strong key sensitivity. Determinism lets an authorized receiver regenerate the exact sequence needed for inversion, while the output stays unpredictable to anyone else. And most chaotic maps reduce to a handful of arithmetic operations per sample, which keeps them viable in software, in hardware, and on embedded targets. They also compose readily with permutation, substitution, DNA encoding, and keyed hashing when a layered design is wanted.
The usual way to exploit these properties is a confusion–diffusion architecture. Confusion moves pixels to break the spatial relationship between neighbors; diffusion alters pixel values so that a small change in the plaintext or key propagates across the ciphertext. The Arnold Cat Map (ACM) is invertible and periodic, which suits it to the confusion stage. However, its standard form applies to square matrices and its effect depends on the chosen parameters and iteration count. The chaotic logistic map (CLM) supplies the orbit-validated round parameters of the key schedule. Combining the two exploits their complementary behavior within one scheme [1,2,22].

1.2. Positioning and Open Question

Work of this kind has appeared in this journal before. Alghamdi and Munir surveyed the design space and, more usefully for comparison, fixed upper and lower bounds for the security, quality, and efficiency metrics that image ciphers are judged by [23]; the evaluation reported in Section 4 follows those bounds. Our own earlier design in this journal coupled a Hénon map with a logistic map to build the key material [24], and a related scheme derived keys from a 2D chaotic logistic map [25]. Both were evaluated at a single fixed configuration. The Collatz-based key generator in [26] was evaluated the same way. That is the general pattern in the literature: security results are reported for one parameter setting, and the reader has no way to tell whether the setting was essential or merely convenient. Abba et al. [27] make a sharper version of the same complaint, arguing that chaos-based ciphers have gained little traction in practice because their structures are more elaborate than their analysis warrants. Recent designs in this journal illustrate the point from the other direction: both the PBKDF2-seeded partition–permutation cipher of Vargas Valencia et al. [21] and their later intra-channel diffusion scheme [15] report strong differential scores, but at one operating point each. Block geometry is where this gap bites hardest. Small independent permutation blocks may not spread spatial information far enough, while overlapping blocks mix more thoroughly at the price of repeated work on the same pixels. Neither claim is usually tested. The question we ask here is narrow and answerable: for a permutation–diffusion cipher of this shape, how much security does block overlap actually buy, and what does it cost?
To answer it, we propose a four-round confusion–diffusion scheme built from block-wise ACM permutation, an S-box substitution stage, and CLM-driven XOR diffusion. In each round, the ACM permutes pixels within blocks, an AES S-box is applied bytewise, and a logistic sequence is reshaped into a spatial mask and XORed with the image, with an independent keystream for each color channel. The round keys come from an explicit SHA-256 key schedule, and a SHA-256 tag of the plaintext is computed at encryption time, carried with the ciphertext, and mixed into every keystream seed, binding the diffusion to the image content. Four rounds accumulate the effect. Decryption inverts the rounds in reverse order, regenerating the same masks from the tag and applying the inverse S-box and the inverse ACM transformation. Within this study, this four-round cipher is the experimental testing vehicle: it exists to carry the block-geometry variable, and the paper’s contributions are the evaluation framework and the repaired construction, not a new round structure.

1.3. Main Contributions

The main contributions of this work are:
  • A reversible four-round image-encryption scheme is developed by combining block-wise Arnold Cat Map confusion, AES S-box substitution, and chaotic logistic map diffusion, with a SHA-256 key schedule and a plaintext-bound tag that ties the diffusion keystreams to the image content.
  • We evaluate the scheme across five block sizes (16 × 16 up to 256 × 256) and three overlap settings (0%, 50%, and 75%), examining how each choice trades security against computational cost. In this contribution, the four-round framework serves as the experimental testing vehicle for the geometry study, not as the innovative result itself.
  • Our experiments draw on 24 color images from the Kodak Lossless True-Color Image Suite [28]. For every configuration, we report histogram uniformity, correlation, entropy, MSE, PSNR, SSIM, NPCR, and UACI, and we further examine key sensitivity, key-space size, and resistance to special plain-image attacks.
  • Robustness is examined under salt-and-pepper noise, Gaussian noise, occlusion, clipping, and other forms of ciphertext deterioration; efficiency is measured in terms of encryption time and throughput.
  • Experimental results show that the non-overlapping 128 × 128 setup is a good compromise between security and speed. The chosen configuration offers pooled entropy values around 7.9998 bits, adjacent pixel correlations near zero, NPCR values above 99.6%, an exact lossless decryption, and a mean throughput of 6.79  MB/s ( 6630.9  KB/s, 1 KB = 1024  bytes). The results also show that the remaining degradation modes are additive Gaussian noise and heavy clipping, which locate the robustness limits of the confusion–diffusion design under channel damage.
Section 2 reviews related image-encryption methods and compares their security and computational characteristics. Section 3 gives the encryption and decryption algorithms, the ACM permutation, the S-box substitution, the hash-seeded XOR diffusion, the key schedule and plaintext tag, and the key-space analysis. Section 4 describes the experimental setup and reports the security, robustness, and performance results. Section 5 summarises the findings and outlines further work.

3. The Proposed Scheme

This section sets out the proposed chaos-based encryption system. The goal throughout is a confusion–diffusion design that stays light enough for real-time visual communication in IoT and networked imaging settings, yet strong enough to withstand serious cryptanalysis.
The proposed scheme combines three components: the Arnold Cat Map (ACM) for permutation, an AES S-box for bytewise substitution, and a combined SHA-256/logistic-map keystream for diffusion. Introduced by Arnold, the ACM is an area-preserving linear transform; because it is both invertible and periodic, it has become a popular choice for the confusion stage. Equation (1) gives the coordinate update, and its matrix has determinant 1, hence an inverse exists. One limitation is that the ACM applies only to square images, so any non-square image is partitioned into square blocks and the map is applied to each block independently.
x t y t = 1 p q p q + 1 t x 0 y 0 mod N
Here, x 0 , y 0 are the original pixel coordinates, x t , y t the scrambled coordinates after t iterations, N the block size, and p ,   q the control parameters; the mod N keeps the new coordinates inside the block.
The key schedule draws its round parameters from the chaotic logistic map (CLM), a discrete-time system defined by the recurrence
X n + 1 = r X n ( 1 − X n )
where X n is the state at step n and r is the control parameter, with X n confined to [ 0 , 1 ] throughout the iteration. The value of r decides the regime:
  • For r < 1 , the system stabilizes at a single point.
  • For 1 ≤ r ≤ 3 , the system follows a periodic pattern.
  • For 3 ≤ r ≤ 3.57 , a period-doubling cascade occurs.
  • For 3.57 < r < 4.0 , chaotic behavior emerges (with periodic windows).
  • For r > 4.0 , the system becomes divergent.
Figure 1 illustrates the overall framework. Encryption proceeds in four rounds, each consisting of a confusion phase, a substitution phase, and a diffusion phase. Confusion is governed by the ACM parameters (p, q, iteration count, block size, and step size), while each round’s diffusion mask is the XOR of a SHA-256 counter-mode keystream and the quantized logistic orbit of the round’s validated CLM parameters (r and the seed x 0 ), all derived and orbit-validated by the key schedule of Algorithm 1; all parameters are derived from the 128-bit secret key through an explicit SHA-256 key schedule. Two further ingredients bind the scheme to the data it protects. First, a bytewise AES S-box sits between permutation and diffusion, so that the two no longer compose into a linear equivalent. Second, a keyed HMAC-SHA-256 tag of the plaintext is computed once, transmitted with the ciphertext, and mixed into every keystream seed, ensuring that the diffusion of one image never reuses the keystream of another. Because the rounds repeat, the permutations, substitutions, and gray-level modifications accumulate across rounds, and the final round outputs a noise-like ciphertext suitable for transmission over an insecure channel. Decryption reverses this process round by round, applying inverse diffusion, inverse substitution, and inverse confusion, and accurately recovers the original plaintext image when the correct key is used.
Figure 1. Proposed scheme. Each of the four rounds performs an Arnold cat map permutation, an S-box substitution, and diffusion with a per-channel combined mask; decryption reverses these steps by applying the inverse operations in the opposite order. A keyed HMAC-SHA-256 tag of the plaintext travels with the ciphertext and seeds every keystream.
Figure 2 depicts the encryption process. The plaintext image is first permuted with the Arnold Cat Map, where p, q, and T define the transformation matrix and the block and step sizes determine the permutation pattern; this disperses the pixels and reduces the correlation between neighbors. The AES S-box is then applied bytewise, adding a keyless but nonlinear substitution that breaks the linearity of the permutation–XOR composition. Diffusion follows: for each color channel independently, a combined mask—a SHA-256 counter-mode stream seeded from SHA-256(tag | K | [ l , ch ] ) and XORed with the quantized logistic orbit of the round’s validated parameters—is reshaped into a spatial mask and XORed with the image.
Figure 2. Encryption pipeline. The plaintext runs through ACM confusion, S-box substitution, and combined counter-mode/logistic-map XOR diffusion for four rounds, ending in the ciphertext. Each channel of each round uses an independent keystream derived from the key, the plaintext tag, and the round’s validated parameters.
Figure 3 shows the matching decryption path. The ciphertext first meets the inverse diffusion stage, where the same seeds SHA-256(tag ∥ K ∥ [ l , ch ] ) regenerate the identical per-channel keystreams, and the XOR, being its own inverse, removes the diffusion. The result then passes through the inverse S-box and into the inverse confusion stage, which applies the inverse Arnold Cat Map with p, q, T, the block size, and the step size to reverse the permutation. Four rounds of this inverse diffusion–substitution–confusion sequence return the recovered image. Decryption requires the tag, since the keystreams cannot be regenerated without it.
Figure 3. Decryption pipeline. The ciphertext runs through inverse XOR diffusion, inverse S-box substitution, and inverse ACM confusion for four rounds to recover the image.
Algorithms 2 and 3 collect the two procedures side by side. They share the same front matter: the 128-bit key K is expanded by the deterministic schedule of Algorithm 1, and every diffusion mask is seeded by SHA-256 ( tag ∥ K ∥ [ l , ch ] ) , so decryption regenerates bit-identical keystreams without any additional transmitted state. Algorithm 2 then runs four rounds of confusion, substitution, and diffusion, while Algorithm 3 applies the inverse stages in reverse round order ( l = 4 , … , 1 ), using the self-inverse of XOR, the inverse AES S-box, and the exact inverse shear cascade. Correct recovery is guaranteed by construction, which is why the decryption algorithm is a mirror image of the encryption algorithm rather than an independent procedure.
Algorithm 1: Key Schedule Derivation (Key Generation)
Require: 128-bit key K (as bytes); number of rounds n r = 4
Ensure: ACM parameters p , q , T ; round keys { ( r l , x 0 ( l ) ) } l = 1 n r ; counter c
      1: c ← 0
      2:repeat
      3:       H c ← SHA- 256 ( K ∥ c ) (counter c as two little-endian bytes)
      4:      for  i = 1 to 16 do w i ← H c ( 2 i − 1 ) · 256 + H c ( 2 i )  end for(sixteen 16-bit words)
      5:       p ← 1 + ( w 1 mod 251 ) , q ← 1 + ( w 2 mod 251 ) , T ← 5 + ( w 3 mod 12 )
      6:      for  l = 1 to n r  do
      7:             r l ← 3.57 + 0.43 · w 3 + l 65 , 536 (chaotic regime [ 3.57 , 4 ) )
      8:             x 0 ( l ) ← w 7 + l 65 , 536
      9:      end for
    10:       valid ← ⋀ l = 1 n r OrbitOK ( r l , x 0 ( l ) ) (Floyd cycle detection on the exact orbit)
    11:       c ← c + 1
    12:until  valid
    13:return  ( p , q , T , { ( r l , x 0 ( l ) ) } l = 1 n r , c − 1 )
Algorithm 2: Proposed Encryption Algorithm
Require: Color plaintext image P of size R × C × C h ; 128-bit key K; block size B; overlap ratio o ∈ { 0 , 1 2 , 3 4 }
Ensure: Cipher image C; keyed authentication tag tag (transmitted with C)
      1: I ← P
      2: S ← B − ⌊ o · B ⌋ (stride; o = 0 gives non-overlapping blocks)
      3:if  ( R − B ) mod S ≠ 0  or  ( C − B ) mod S ≠ 0  then reject  ( B , o )  end if(no padding; every tested geometry satisfies this)
      4: K mac ← SHA- 256 ( “ mac ” ∥ K ) (separately derived MAC key)
      5: tag ← HMAC-SHA- 256 K mac , canon ( P ) (canonical order: channel-major, column-major per plane)
      6: ( p , q , T , { ( r l , x 0 ( l ) ) } l = 1 4 ) ← DeriveKeySchedule ( K ) (Algorithm 1; rejection-sampled)
      7:for  l = 1 to 4 do
      8:      Confusion (block-local ACM): visit the B × B windows of I with stride S in forward raster order; each window is permuted in place by the shear cascade r ′ = ( r + p c ) mod B , c ′ = ( c + q r ′ ) mod B applied T times, so later overlapping windows see already-scrambled pixels
      9:      Substitution:  I ← SBOX ( I ) (AES S-box, bytewise)
    10:      Combined mask generation:
    11:      for each channel c h = 1 to C h  do
    12:             s ← SHA- 256 ( tag ∥ K ∥ [ l , c h ] ) (plaintext-dependent seed)
    13:                   CM ← SHA- 256 counter mode ( s ) : buf ← SHA- 256 ( s ∥ 0 LE 32 ) ∥ SHA- 256 ( s ∥ 1 LE 32 ) ∥ ⋯ , truncated to R · C bytes; reshape to ( R , C ) row-major
    14:             LG ← ⌊ 255 · x k ⌋ , x k + 1 = r l x k ( 1 − x k ) , x 1 = x 0 ( l ) , for k = 1 . . R · C iterates in IEEE-754 doubles; filled into ( R , C )  column-major
    15:             M ( : , : , c h ) ← CM ⊕ LG (counter-mode stream XOR quantized logistic orbit)
    16:      end for
    17:      Diffusion:  I ← I ⊕ M (one mask per round and channel; bitwise XOR)
    18: end for
    19: return  C ← I , tag
Algorithm 3: Proposed Decryption Algorithm
Require: Cipher image C of size R × C × C h ; authentication tag tag (received with C); 128-bit key K; block size B; overlap ratio o
Ensure: Recovered image P ′ , or ⊥ if authentication fails
      1: I ← C ; S ← B − ⌊ o · B ⌋
      2: ( p , q , T , { ( r l , x 0 ( l ) ) } l = 1 4 ) ← DeriveKeySchedule ( K ) (identical to encryption; Algorithm 1)
      3:for  l = 4 down to 1 do
      4:    Combined mask regeneration: recompute M exactly as in Algorithm 2 (same seeds s = SHA- 256 ( tag ∥ K ∥ [ l , c h ] ) , same counter-mode and logistic orbits)
      5:    Reverse diffusion:  I ← I ⊕ M (XOR is self-inverse)
      6:    Reverse substitution:  I ← INV _ SBOX ( I ) (inverse AES S-box, bytewise)
      7:    Reverse confusion (block-local ACM): visit the same B × B windows with stride S in exact reverse raster order; each window is restored in place by the inverse shear cascade c = ( c ′ − q r ′ ) mod B , r = ( r ′ − p c ) mod B applied T times
      8:end for
      9: P ′ ← I
    10: tag ′ ← HMAC-SHA- 256 SHA- 256 ( “ mac ” ∥ K ) , canon ( P ′ ) (recomputed from the recovered plaintext)
    11:if  ConstantTimeEqual ( tag ′ , tag )  then return  P ′ (authentic ciphertext)
    12:else return ⊥(tampered ciphertext or wrong key: reject; never release P ′ )
    13:end if
In short, the scheme is a four-round confusion–substitution–diffusion network. Within each round ℓ ( l = 1 , … , 4 ), the working image I is first scrambled block by block with the Arnold Cat Map, with the step size S fixing the overlap ratio ( S = B for non-overlapping, S < B for overlapping), then substituted bytewise, then diffused with a channel-specific keystream.

3.1. Key Generation

Algorithm 1 makes the mapping from the 128-bit key to every algorithm parameter explicit and deterministic. A single SHA-256 call per candidate counter produces sixteen 16-bit words, from which the ACM parameters and the four round keys are read off by fixed modular reductions: p , q ∈ [ 1 , 251 ] and T ∈ [ 5 , 16 ] , while the affine maps confine each r l to the chaotic regime [ 3.57 , 4 ) and each x 0 ( l ) to [ 0 , 1 ) . The derivation is not trusted blindly, however. Every candidate quadruple of round keys is orbit-validated on the exact logistic recurrence (Floyd cycle detection), and any key whose parameters would produce a short or degenerate orbit is rejected before a single pixel is touched; the counter then increments and a fresh candidate is drawn. Weak keys are therefore excluded by construction rather than by assumption: every parameter set the cipher ever runs with has already demonstrated a non-degenerate orbit. In practice, the filter is cheap, about 61.0 % of keys validate at c = 0 , and the mean counter is ≈0.58 (measured over 10 5 random keys, worst case 10), so key set-up adds at most a few extra hash evaluations, and none of this cost appears in the per-image timings of Section 4.7. The counter is two bytes, leaving 65,536 candidates, which makes exhaustion of the candidate space a non-issue. Decryption re-derives the identical schedule from K, including the identical validation, so no derived parameter needs to be stored or transmitted; only the tag of Section 3 travels with the ciphertext.

3.2. Scrambling Phase

The ACM of Equation (1) is defined on a square domain, so a scheme built on it has to decide what to do with a rectangular image. Two routes appear in the literature. The first generalizes the transform itself: the 2D rectangular transform replaces the single modulus N by the pair ( W , H ) and stays reversible whenever its matrix entries satisfy a set of greatest-common-divisor conditions on W and H [50,51,52]. The second keeps the square map and partitions the image into square blocks, each scrambled independently [52,53,54,55]. We take the second route, because the geometry of that partition, block size and overlap, is the variable this paper sets out to measure. The conditions under which a linear transformation followed by a modulo operation stays invertible have been given in general form by Turan et al. [56,57], and we use them below to establish that the partition is lossless. The image is cut into B × B blocks taken with a sliding stride S ( S = B for non-overlapping, S < B for overlapping). Each block is scrambled on its own by iterating the 2-D Arnold Cat Map T times with the secret pair ( p , q ) . Overlapping blocks are written in place in raster order, so a later block overwrites the scrambled pixels that an earlier one left in the shared region, and decryption visits the same blocks in exact reverse raster order (Section 3.4), which inverts the in-place writes. The implementation places one deterministic requirement on the geometry: the block grid must tile the image exactly, i.e., ( H − B ) and ( W − B ) must be divisible by the stride S; a geometry that would leave partial blocks at the bottom or right edge is rejected rather than padded. Every geometry reported in this paper satisfies the requirement—the Kodak images are 512 × 768 or 768 × 512 , divisible by every tested block size and stride—so the ciphertext always has exactly the plaintext dimensions, no padding travels with it, and no side information beyond the tag is needed.
That the partition is lossless follows from the same invertibility conditions cited above. Within a block, the map φ ( x , y ) = A ( x , y ) T mod B with A = 1 p q p q + 1 is a bijection of the block onto itself: det A = ( 1 ) ( p q + 1 ) − p q = 1 , so gcd ( det A , B ) = 1 for every B, which is the necessary and sufficient condition for a linear transformation followed by reduction modulo B to be invertible on Z B 2 [56]. The reduction is taken in block-local coordinates, so no pixel leaves the block that contains it, and composition with the exact reverse-order traversal of the block grid makes the whole scrambling stage an exact permutation of the image. Recovery is therefore bit-exact for every geometry the implementation accepts, as the decryption results of Section 4 confirm.
Where exact tiling cannot be arranged, an alternative that avoids partial blocks altogether is to anchor the final block row and column to the image edge, so that the square blocks cover the rectangle exactly and the last blocks overlap their neighbors by whatever amount the geometry forces. O’Dea [52] gives this tiling explicitly for partitioned ACM systems and calls the forced amount geometric overlap, to distinguish it from the overlap the user specifies. Our implementation already supports it without modification, because edge-anchored blocks are ordinary overlapping blocks: they are written in place in raster order and inverted in reverse raster order, exactly as Section 3.4 describes for the S < B configurations. All experiments in this paper use geometries that tile exactly, and we note the edge-anchored variant as the option to prefer for images whose dimensions are not commensurate with the chosen block size.

3.3. Diffusion Phase

Each round ℓ and each colour channel ch draws its own mask K ( l , ch ) , and every mask byte depends on both the plaintext-bound seed and the round’s validated chaotic parameters. The construction has three steps. (i) Keyed plaintext tag. Let the MAC key be k m = SHA- 256 ( “ mac ” ∥ K ) , domain-separated from the encryption uses of K , and compute once per image
tag = HMAC-SHA- 256 k m , plaintext bytes ,
over the three colour planes in channel order, each plane in column-major order. The 32-byte tag is transmitted with the ciphertext; because it is keyed, an observer without K cannot compute it, so candidate plaintexts cannot be tested against it. (ii) Per-round, per-channel seed.
s l , ch = SHA- 256 tag ∥ K ∥ [ l , ch ] .
(iii) Combined mask. The R · C mask bytes are the XOR of two streams of R · C bytes each, both filled column-major: a SHA-256 counter-mode stream, block i being SHA- 256 ( s l , ch ∥ i ) with i a four-byte little-endian counter; and the quantized logistic orbit of the round’s validated parameters,
x n + 1 = r l x n 1 − x n ,
k n = ⌊ 255 x n ⌋ over the iterates of (3) with ( r l , x 0 ( l ) ) from Section 3.5.
Under the standard model of SHA-256 as a pseudorandom function, the counter-mode stream is uniform and independent of the logistic bytes, so their XOR is uniform: the stream’s statistics are those of the counter-mode component, while every mask byte, and hence every ciphertext byte, now depends on ( r l , x 0 ( l ) ) . This division of labor is measured, not assumed. The component ablation of Table 2’s experiment fixes the master key and perturbs r l or x 0 ( l ) by 10 − 14 : with the counter-mode component alone, 0.00 % of ciphertext bytes change, the construction would carry no sensitivity to its chaotic parameters at all; with the logistic component alone, avalanche is full but the stream fails the NIST SP 800-22 suite (18 of 72 channel–test results pass, monobit p = 0 ); the combined stream has both properties at once, which is why the two are XORed rather than either used alone. The three channels draw three independent masks; two different plaintexts authenticate to different tags and hence draw completely different streams, even under the same key; and decryption regenerates identical masks from the tag and the key alone, so nothing but the tag and the encrypted canvas travels with the ciphertext. Decryption additionally recomputes the tag over the recovered image and withholds the output when it does not match (Section 3.4).
Table 2. Key-sensitivity analysis: NPCR, UACI, and correlation between ciphertexts generated by the original key K and a perturbed key K ′ (mean over 24 images; the key-bit row averages all 128 single-bit flips on images 1–3).

3.4. Decryption

Decryption unwinds the four rounds. For l = 4 , … , 1 , we regenerate the same keystreams K ( l , ch ) from the tag and the key, apply the XOR (which is self-inverse), pass the result through the inverse S-box, and run the inverse ACM block by block. With overlap ( S < B ), the inverse ACM has to visit blocks in reverse raster order, since the in-place writes do not commute; without overlap, the order makes no difference.

3.5. Key-Space Analysis

The proposed cipher uses a single 128-bit master key K as its independent secret input. Consequently, the master-key space is the discrete set
K = { 0 , 1 } 128 ,
with cardinality
| K | = 2 128 ≈ 3.40 × 10 38 .
Thus, the effective cryptographic key space of the proposed scheme is 2 128 .
It is important to distinguish this master-key space from the space of chaotic and ACM parameters generated by the key-scheduling procedure. Although the logistic-map parameters r l and x 0 ( l ) are mathematically defined over continuous intervals, they are not selected independently from those intervals. In Algorithm 1, every such parameter is derived deterministically from a 16-bit word of the SHA-256 output. Hence, the implementation uses a finite discretization of the nominally continuous parameter space.
For each round ℓ,
r l = 3.57 + 0.43 w 3 + l 65,536 ,
and
x 0 ( l ) = w 7 + l 65,536 ,
where
w i ∈ { 0 , 1 , … , 65,536 } .
Therefore, each r l has at most 2 16 possible values and each x 0 ( l ) likewise has at most 2 16 possible values. The continuous intervals
r l ∈ [ 3.57 , 4 ) and x 0 ( l ) ∈ [ 0 , 1 )
should therefore be understood as ranges containing a finite set of key-derived representable values, rather than as sources of independent continuous key entropy.
Similarly, the ACM parameters are obtained from fixed modular reductions,
p = 1 + ( w 1 mod 251 ) , q = 1 + ( w 2 mod 251 ) ,
and
T = 5 + ( w 3 mod 12 ) ,
so that
p , q ∈ { 1 , … , 251 } , T ∈ { 5 , … , 16 } .
If these derived quantities were counted independently, the nominal number of possible parameter tuples before orbit validation would be
251 2 · 12 · ( 2 16 ) 8 = 251 2 · 12 · 2 128 ≈ 2 147.53 .
This number characterizes the size of the parameter representation space; it is not the effective secret-key space. The parameters are deterministic images of K under the SHA-256-based key schedule and are therefore mutually constrained. No additional independent entropy is introduced by representing the chaotic variables with multiple discrete levels. In particular,
H ( derived parameters ) ≤ H ( K ) = 128 bits ,
and the number of distinct parameter schedules reachable from the master-key domain cannot exceed 2 128 .
The two-byte counter c also does not enlarge the secret-key space. For a given K, the counter is initialized to zero and incremented deterministically until the first candidate parameter set satisfying the orbit-validation criterion is found. Encryption and decryption perform the same procedure, so c is neither an independently selected secret nor an additional key component. Its role is solely to avoid weak or degenerate chaotic trajectories.
Consequently, orbit validation reduces the set of candidate parameter representations used by the cipher without increasing the entropy of the secret key. Provided that at least one acceptable candidate is found among the 2 16 possible counter values, each master key determines one valid parameter schedule.
The distinction between the two spaces can therefore be summarized as
Master- key space : 2 128 , Nominal derived- parameter space : ≈ 2 147.53 , Effective cryptographic key space : 2 128 .
Consequently, brute-force key recovery requires searching the discrete 128-bit master-key domain. The chaotic parameter ranges provide key-dependent dynamical diversity, but they do not constitute an independent continuous key space and should not be counted as additional secret-key bits.
  • Brute-force resistance; at a guess rate of 10 9 keys per second, a full search would take
    2 128 10 9 × 3.156 × 10 7 ≈ 1.08 × 10 22 years ,
    which is hopeless by a wide margin. Scaling the hardware up does not rescue the attack: a large ASIC cluster testing 10 15 keys per second would still need ≈ 1.08 × 10 16 years, and even an adversary commanding hardware equivalent to the entire global Bitcoin mining network ( ∼ 10 21 hash evaluations per second) would need ≈ 1.08 × 10 10 years, roughly the age of the universe, to exhaust the space, and half that on average. A quantum adversary running Grover’s algorithm faces ≈ 2 64  sequential iterations, each one a full cipher evaluation implemented on fault-tolerant hardware; that workload is beyond any announced quantum capability, although, as with every 128-bit primitive, we do not claim post-quantum security. These figures bound exhaustive search over the 128-bit input-key domain and nothing more. They do not establish the effective security strength of the construction, which would require cryptanalysis of the complete cipher and is not claimed here.
  • Parameter quantization and the key space.With the key schedule published (Section 3.5), each derived parameter is a quantized function of K , so one must check that the quantization itself does not collapse distinct keys together. The nominal parameter space is
    log 2 251 ︸ p + log 2 251 ︸ q + log 2 12 ︸ T + 4 × 16 ︸ r l + 4 × 16 ︸ x 0 ( l ) ≈ 147.5 bits ,
    i.e., about 2.57 × 10 44 ≥ 2 128 admissible tuples: the 128-bit key, not the 16-bit parameter resolution, is the binding constraint, and key-space reduction by parameter clustering does not apply. As a check on the implementation, not as evidence of injectivity or of effective security strength, which no sample of this size can provide, we ran the schedule on 10 5 uniformly random keys: all 10 5 parameter tuples were distinct (the birthday bound predicts ≈ 1.5 × 10 − 29 collisions at this sample size), the rejection sampler accepted 61.0 % of keys at counter c = 0 (mean counter 0.58 , worst case 10), and every derived tuple satisfied the admissibility constraints of Section 3.5. The constraints therefore exclude degenerate logistic parameters without excluding any keys: the weak-key fraction is zero by construction, and the schedule overhead is negligible. They do not exclude ACM parameter choices whose composed permutation has low order for a given block size; Appendix C examines that case.
  • Key sensitivity. Because the schedule hashes K before deriving any parameter, flipping a single key bit avalanches into every round parameter at once. We flipped each of the 128 key bits in turn and re-encrypted the same plaintext: between the reference and perturbed ciphertexts the mean NPCR was 99.608 % (minimum 99.557 % over all 128 flips), the mean UACI was 33.460 % against an ideal of 33.464 % , and the maximum absolute ciphertext correlation was 0.005 . No single key bit produced a weaker avalanche than the others in this test. We stress that this experiment, not the 10 − 14 perturbations of Table 2, is the correct measure of key sensitivity: as discussed in Section 3.5, the latter probe the chaotic generators directly and are reported as parameter sensitivity.
  • Resistance to known attacks. The design aims at the standard cryptanalytic threats:
  • Statistical attacks:Near-uniform histograms (chi-square mean 253.44 against an ideal of 255, entropy ≈ 8 bits), negligible adjacent-pixel correlation, and NPCR above 99.6% leave no statistical structure to exploit.
  • Differential attacks: A one-bit change in the plaintext or key sets off a full avalanche (NPCR > 99.6 % , UACI ≈ 33.46 % against an ideal of 33.464 % ), measured as a proper two-ciphertext test between C and C ′ of one-bit-differing plaintexts under the same key (Section 4.4.3, Appendix B). Resistance to chosen-plaintext attack in the sense of [58,59] is not claimed, as the known-plaintext bullet below states.
  • Known-plaintext attacks: Every mask is seeded by SHA- 256 ( tag ∥ K ∥ [ l , ch ] ) with tag = SHA- 256 ( plaintext ) , so a known plaintext–ciphertext pair contributes exactly the evidence the construction supports and no more. As derived in Appendix C, Equations (A1) and (A2), the AES S-box acts identically on every byte and therefore commutes with any pixel permutation, and an XOR mask passes through a permutation as an XOR with the permuted mask; applying these identities round by round reduces the four rounds, for a fixed tag, to one position-wise byte bijection followed by the single pixel permutation φ 4 T . A known pair therefore gives, for each pixel position, one input–output point of that position’s byte map under that tag; it does not separate the four round masks, and, modeling SHA-256 as a random oracle, a pair recorded under one tag says nothing about masks drawn under another. The residual case is repetition: encrypting the same plaintext twice under the same key reproduces the same tag and hence the same ciphertext, and distinct plaintexts of identical size share the key schedule but not the mask seeds. We therefore do not claim chosen-plaintext resistance in the sense of Solak et al. [58] and Zhang et al. [59]; we identify the per-image nonce as the deployment option by which the equality leak closes, with no security claim attached to that option here (Section 5).
  • Threat model and limitations: The adversary is assumed to observe ciphertexts and tags and, in the strongest case considered here, to know or choose plaintexts of the same dimensions. The scheme provides confidentiality and integrity in the following sense: the tag is a keyed HMAC-SHA-256 over the canonical plaintext bytes, and decryption recomputes it over the recovered image and withholds the output when it does not match, so modified ciphertext or tag is rejected rather than silently decrypted; this is the synthetic-IV (SIV) construction for deterministic authenticated encryption, implemented here rather than proposed as future work. Because the construction is deterministic and plaintext-bound, it does not aim at IND-CPA or IND-CCA security and should not be deployed where those notions are required without the nonce-based variant identified above.
  • In short, the 128-bit key bounds exhaustive search over the input-key domain at 2 128 trials and nothing more: the effective security strengthof the construction would require cryptanalysis of the complete cipher and is not claimed. Modeling SHA-256 as a random oracle, two fixed distinct keys collide in the derived parameter tuple with probability of the order of the inverse of the tuple-space size (about 2 − 147 ); this is a modeling argument, not a measured property, and the 10 5 -key collision check reported in Section 3.5 is a check on the implementation, not evidence of injectivity. Single-bit key changes avalanche through every derived use of the key, as Table 2 measures.

Key Schedule and Parameter Admissibility

The mapping from the 128-bit key to every algorithm parameter is specified here in full, matching the reference implementation exactly; the same derivation runs at encryption and at decryption, so no derived parameter is ever stored or transmitted. Let K be the 128-bit key and let c ∈ { 0 , 1 , 2 , … } be a two-byte counter. For each candidate c we compute
H c = SHA- 256 K ∥ c ,
and parse H c into sixteen 16-bit words w i = H c ( 2 i ) · 256 + H c ( 2 i + 1 ) for i = 0 , … , 15 . The algorithm parameters are then read off by fixed modular reductions and affine maps:
p = 1 + ( w 0 mod 251 ) , q = 1 + ( w 1 mod 251 ) , T = 5 + ( w 2 mod 12 ) ,
r l = 3.57 + 0.43 w 3 + l 65,536 , x 0 ( l ) = w 7 + l 65,536 , l = 0 , … , 3 ,
so p , q ∈ [ 1 , 251 ] , T ∈ [ 5 , 16 ] , every r l ∈ [ 3.57 , 4 ) and every x 0 ( l ) ∈ [ 0 , 1 ) . All real arithmetic is IEEE-754 double precision. This is the complete schedule: there is no additional key-derivation primitive and no hidden state.
A candidate tuple is not trusted blindly. Every ( r l , x 0 ( l ) ) pair is orbit-validated on the exact logistic recurrence (3) by Floyd cycle detection over a 10 4 -iterate horizon, and any key whose parameters would produce a short or degenerate orbit is rejected before a single pixel is touched; the counter then increments and a fresh candidate is drawn. Weak keys are therefore excluded by construction rather than by assumption. In practice, the filter is cheap: about 61.0 % of keys validate at c = 0 and the mean counter is ≈ 0.58 , so key setup adds at most a few extra hash evaluations, none of which appears in the per-image timings of Section 4.7. The 65,536 candidate counters make exhaustion of the candidate space a non-issue.
The iteration count T is checked against the period structure of the block map rather than enforced by rejection: for each tested geometry, Appendix C reports T against the ACM period P ( B ) and its small integer fractions, since the discrete cat map has period at most 3 N [60], its period distribution has been characterized by Chen et al. [61] and Li et al. [62], and the plain image partially reappears at simple fractions of the period (the ghost periods of Behrends [63], illustrated for a partitioned scheme by O’Dea [52]). The schedule does not reject (p,q,T) on period grounds, and the experimental key is not clear of this structure in every geometry: for B = 16 the composed permutation over the four rounds is the identity (Appendix C).
We do not claim that the map from keys to parameter tuples is injective; no such claim can be established for a compressing map. If SHA-256 is modeled as a random oracle, two fixed distinct keys yield the same parameter tuple with probability of the order of the inverse of the tuple-space size, about 2 − 147 ; this is a modeling argument, not a property we have measured, and the 10 5 -key experiment above checks only the implementation. Orbit validation excludes the parameter regions in which the logistic generator degenerates. This is the form of argument required of chaos-based designs by Alvarez and Li [64].
One consequence for the experiments should also be recorded. The 10 − 14 perturbations of Table 2 act on the chaotic parameters directly and are therefore reported as parameter sensitivity; with the key schedule published, no two distinct 128-bit keys differ by 10 − 14 in a single parameter, so that experiment does not measure key sensitivity. Key sensitivity is reported separately, by flipping one of the 128 key bits and propagating the change through the schedule above.

4. Experimental Results and Security Analysis

This section evaluates the proposed scheme empirically on the Kodak lossless true-color suite, using the chosen configuration: a non-overlapping 128 × 128 block-based ACM permutation with four rounds of S-box substitution and combined SHA-256/logistic-map XOR diffusion. The experiments fall into six parts: the experimental setup; parameter selection and encryption quality; histogram and statistical uniformity; pixel correlation and information entropy; differential and key-sensitivity analysis; and, last, robustness to common image-processing attacks together with computational efficiency. Read together, they show a scheme that combines strong statistical security, high key sensitivity, and throughput adequate for low-rate image snapshots and compressed streams, though not for uncompressed video at 30 fps.

4.1. Experimental Setup

All experiments use the Kodak Lossless True Color Image Suite: 24 standard RGB images that have long served as a benchmark in image-processing and encryption studies [28]. Each image is 768 × 512 or 512 × 768 pixels at 8 bits per channel. We use the images unmodified, no resizing and no compression, so that every run sees the same kind of input.
The scheme was implemented in Python 3 and run on a single machine, a Dell 16 Plus (Intel Core Ultra 9 288V, 3.30 GHz, 32 GB RAM, Intel Arc 140V GPU, Windows 11 64-bit). Holding both hardware and software stack fixed keeps the timing and throughput numbers comparable across all cases.
Encryption and decryption share one implementation, which operates directly on the three RGB channels as 8-bit unsigned integers, widening the type only where an intermediate step requires it. The full source code and the measured results are openly available for inspection and reuse.
Table 3 reports quality metrics for the five block sizes, computed without overlap. Decryption is exact at every block size: MSE = 0 , PSNR = ∞ , and CC = 1 , since the ACM permutation, the S-box substitution, and the XOR diffusion are all exactly invertible operations and the pipeline therefore recovers the original plaintext image perfectly.
Table 3. Quality metrics for encryption and decryption, evaluated across different block sizes without block overlap. Individual results are presented for images 1, 5, 19, and 23, along with the average metrics calculated over all n = 24 images. Per-image values for all 24 images are provided in the Zenodo record listed under Data Availability.
The difference between plaintext and ciphertext is likewise stable across block sizes. The per-configuration mean MSE spans 9213.35 – 9215.60 , the mean PSNR stays around 8.56 dB, and the mean correlation coefficient is within ± 0.001 of zero, i.e., effectively zero. The low PSNR is intentional: it measures the difference between plaintext and ciphertext, not a reconstruction error. Consequently, block size can be chosen on practical grounds, speed, memory, or hardware constraints, because none of the measured metrics distinguishes among block sizes.

Metric Definitions and Measurement Protocols

All metrics in this section are defined once here and used with these exact meanings throughout. For an R × C image pair ( X , Y ) with channels treated separately, we report: MSE = 1 R C ∑ ( X − Y ) 2 and PSNR = 10 log 10 255 2 / MSE in dB, always measured between plaintext and ciphertext unless stated; the correlation coefficient CC, Pearson’s r between the intensity values of the two images; SSIM, the structural similarity index; and the per-channel information entropy H = − ∑ i = 0 255 p i log 2 p i in bits, with p i the empirical histogram. The differential measures NPCR and UACI are computed between the ciphertext C of a plaintext P and the ciphertext C ′ of a one-bit-flipped variant P ′ : NPCR is the percentage of pixel positions at which C and C ′ differ, and UACI is the mean absolute intensity difference between C and C ′ as a percentage of the full range: NPCR = # { i : C i ≠ C i ′ } / N × 100 % and UACI = 1 N ∑ i | C i − C i ′ | / 255 × 100 % , whose ideal for an 8-bit cipher is 33.4635 % . The flip protocol is fixed across all experiments: one least-significant bit is toggled at each of ten positions drawn from a fixed-seed generator (seed 20261002) per image, and NPCR/UACI are averaged over the ten positions, then over the 24 images; ideal values for an 8-bit cipher are NPCR = 99.609 % and UACI = 33.464 % . In the special plain-image table (Table 4) the same quantities are reported between a ciphertext and its own plaintext, i.e., as mean-absolute-difference (MAD) measures in percent of how far the output sits from a degenerate input. Chi-square tests each channel histogram of the ciphertext against the uniform expectation R C / 256 with df = 255 . Throughput is reported in MB/s with 1 MB = 10 6 bytes; timings are the median of 30 runs after three warm-up runs, with the key schedule (under 5 ms) excluded from the timed region and reported separately.
Table 4. Robustness analysis against special plain-image analysis (block size B = 128 , non-overlapping). The encryption side compares the ciphertext with its own plaintext: NPCR in percent, and the mean absolute difference MAD ( P , C ) in percent (for these binary test images the expected value is 50 % ); this column is not UACI, whose two-ciphertext definition does not apply to a plaintext–ciphertext comparison. The decryption side is bit-exact for all four images (UACI in percent).

4.2. Block Size and Overlap

4.2.1. Non-Overlapping Configurations ( S = B )

Table 3 reports quality metrics for the five block sizes, computed without overlap. Decryption is exact at every block size: MSE = 0 , PSNR = ∞ , and CC = 1 . The XOR diffusion, the S-box, and the block-local ACM permutation are all lossless processes, ensuring the pipeline perfectly recovers the original plaintext image.
The difference between plaintext and ciphertext remains consistently stable. The mean MSE ranges from 9213.35 to 9215.60, the mean PSNR from 8.5591 to 8.5604 dB, the mean correlation coefficient from − 0.000166 to 0.000098 , i.e., effectively zero. The low PSNR is intentional, as it reflects the difference between plaintext and ciphertext rather than a reconstruction error. Encryption time is likewise flat across block sizes: per-image means span 0.1627 – 0.1815 s over images 1–12 for B = 16 through 256, a spread of 12 % , consistent with the B = 128 headline timing of Section 4.7. Consequently, block size can be selected based on practical grounds such as speed, memory, or hardware constraints, since none of the measured security metrics distinguishes among block sizes.
Cost confirms the flatness: the mean encryption time over images 1–12 (median of 30 timed runs) is 0.181 , 0.172 , 0.176 , 0.174 , and 0.163 s for B = 16 , 32 , 64 , 128 , 256 , flat within 12 % of the mean, because the in-place block processing makes per-block overhead and block count nearly cancel.

4.2.2. Overlapping Configurations ( S < B )

To test the effect of overlap, the scheme was re-run at 50% and 75% overlap for every block size (16, 32, 64, 128, 256). Per-image results appear in Appendix A, Table A1 and Table A2.
Table 5 isolates the trade-off at B = 128 . Overlap leaves the statistics essentially untouched, mean chi-square moves from 253.44 (no overlap) to 259.31 (50%) and 259.83 (75%), all within sampling variation of the ideal 255, and PSNR stays flat ( 8.5591 – 8.5614 dB). What overlap does change is cost: encryption time grows from 0.1739 s to 0.1980 s ( + 14 % ) and 0.3242 s ( + 86 % ), and throughput falls from 6.79 to 5.96 and 3.71 MB/s ( − 45 % at 75%), because overlapping windows rewrite the same pixels several times per round. Measured against the no-overlap baseline of Table 3, the overlap cases barely move: mean MSE of 9215.60, 9210.43, and 9214.48 at 0%, 50%, and 75%, mean CC within ± 0.0003 of zero in all cases. Since overlap costs up to 86% more time for no measurable statistical gain, the non-overlapping design ( S = B ) was kept.
Table 5. Performance–security tradeoff for different overlap ratios (block size B = 128 ).
The 128 × 128 recommendation is specific to this cipher, this test suite, and this platform: the flatness of the security metrics is a property of the geometry-independent diffusion stage, and the flat cost profile reflects the in-place implementation. What transfers to other block-based chaotic image-encryption algorithms is the methodology, sweep the geometry, explain the metric flatness (or its absence) from the construction, measure the cost, not the numerical conclusion, which must be re-derived per construction.

4.3. Visual and Histogram Analysis

Figure 4 displays the red, green, and blue histograms before and after encryption. The plaintext histograms have sharp peaks corresponding to the image content. After encryption, the histograms for all three channels flatten to nearly uniform distributions across the entire 0–255 range, with no traces of the original histogram features remaining.
Figure 4. RGB histograms before and after encryption show that the plaintext channels are irregular and depend on the image content, while the ciphertext channels are nearly uniform across the 0–255 range.
Table 6 reports the per-image pass/fail details, with an image counted as passing when all three channels fall below the critical value ( 293.25 at α = 0.05 ; 310.46 at α = 0.01 , df = 255 ). Of the 24 images, 23 pass at α = 0.05 and all 24 pass at α = 0.01 . Three observations qualify the raw counts. First, the dataset-wide mean of 253.44 sits almost exactly on the ideal of 255, far below the critical value, so the borderline behaviour is confined to a single image rather than being a property of the cipher. Second, the one failure is isolated: image 20 exceeds the threshold in exactly one channel (red, χ 2 = 299.82 , p ≈ 0.036 ), the other two channels of that image pass comfortably, and no channel fails consistently across the set, which is the signature of sampling fluctuation rather than of a structural defect in one plane. Third, a fraction of failures is built into the test itself: under a perfectly uniform ciphertext each channel still exceeds the critical value with probability α by construction, so an ideal cipher would still fail roughly 14 % of images at α = 0.05 when three channels are tested jointly; observing one such image in 24 is entirely consistent with that expectation.
Table 6. Per-image chi-square ( χ 2 ) pass/fail status of the encrypted image histograms ( df = 255 ; critical values 293.25 at α = 0.05 and 310.46 at α = 0.01 ). An image passes when all three channels fall below the critical value; bold entries exceed the α = 0.05 threshold. Overall, 23/24 images pass at α = 0.05 and 24/24 at α = 0.01 .

4.4. Statistical Security Analysis

4.4.1. Correlation Analysis

Adjacent-pixel pairings are plotted in the horizontal, vertical, and diagonal directions in Figure 5. Before encryption, the points cluster along the diagonal, as natural images do, with coefficients of 0.8818 , 0.8312 , and 0.7649 . After encryption, the pairs fill the plane, and the coefficients drop to − 0.0004 , 0.0002 , and − 0.0005 , values statistically indistinguishable from zero, as one expects when no residual structure remains.
Figure 5. Adjacent-pixel correlation in the horizontal, vertical, and diagonal directions, before and after encryption.

4.4.2. Information Entropy Analysis

Figure 6 compares per-channel entropy before and after encryption. The plaintext channels sit well below the 8-bit ceiling because their intensity distributions are uneven. After encryption, each channel measures about 7.9996 bits, 0.0004 short of the maximum (pooled across the three channels, 7.9998 ). First-order redundancy in the ciphertext is therefore negligible.
Figure 6. Per-channel entropy, original versus encrypted. After encryption, every channel sits just under the 8-bit limit.

4.4.3. Differential Analysis

Three measures gauge differential-attack resistance: SSIM (structural similarity), UACI (Unified Average Changing Intensity), and NPCR (Number of Pixels Change Rate). The targets for a strong cipher are SSIM near 0, UACI near the 8-bit ideal of 33.464 % , and NPCR near 99.609 % . Table 7 gives all three for every block size, no overlap. SSIM stays near zero throughout (means 0.0092–0.0093), so structure is gone. NPCR is 99.6091–99.6096% everywhere, so almost every pixel flips. UACI holds at 33.46 % against the ideal of 33.464 % , at the ideal within experimental resolution, and is steady across all sizes, which points to consistent diffusion. Decryption is again exact (SSIM = 1 , UACI = 0 , NPCR = 0 ).
Table 7. Grouped comparison of encryption and decryption SSIM, UACI, and NPCR metrics for different block sizes with no block overlap. NPCR and UACI are differential measures between the ciphertexts C and C ′ of a plaintext P and a one-bit-flipped variant P ′ under the same key (ten random flip positions per image). Decryption is bit-exact for every image and configuration.
We checked the same for overlap, re-measuring at 50% and 75%; the per-image numbers are in Appendix B (Table A3 and Table A4), with Table 8 summarising B = 128 . The three ratios differ only at the margins ( SSIM Δ < 0.0002 , UACI Δ < 0.01 % , NPCR Δ < 0.001 % ). Overlap, in short, does not change differential resistance. Add the throughput penalty from Table 5, and the non-overlapping 128 × 128 choice settles itself.
Table 8. Differential analysis comparison for block size B = 128 (mean over 24 images). NPCR and UACI are differential measures between the ciphertexts C and C ′ of a plaintext P and a one-bit-flipped variant P ′ under the same key (ten random flip positions per image). Decryption is bit-exact for every image and configuration.

4.4.4. Round Count

The round count was carried over from our prior constructions and the permutation–diffusion literature; this subsection replaces that convention with measurement. Table 9 sweeps the round count from 1 to 8 on the revised cipher (24 Kodak images, one-bit plaintext change under the same key). Two findings follow. First, the statistical metrics sit at their ideal from a single round: because every mask is seeded by the plaintext tag, the avalanche is fully established after round one, and later rounds move NPCR and UACI by less than the run-to-run variation of the test. The round count is therefore a confusion-stage parameter, not a diffusion parameter. Second, encryption time grows with the round count (about 0.037 s per round through eight rounds on the test platform), so extra rounds are pure cost once the confusion stage has decorrelated the image. Four rounds is retained as an empirical calibration: it applies the ACM 4 T = 24 times in total, clear of the period and ghost-period structure analyzed in Appendix C except at B = 16 , where the composed block permutation is the identity for the evaluation key and the rounds add nothing (an exception we document plainly in that appendix), at a fraction of the cost of eight. We state plainly that four is not derived from a security reduction and is not claimed to be optimal.
Table 9. Round-count sweep on the revised cipher (block-local ACM, B = 128 ): means over the 24 Kodak images, one-bit plaintext change under the same key. Time is the median over images 1, 3, 20, 24 (3 warm-up, 10 timed runs).

4.4.5. Key Sensitivity Analysis

A good cipher should overreact to the tiniest key change. Table 2 tests this on the revised algorithm, with the two experiments kept clearly separate. In the first, one bit of the 128-bit master key K is flipped; because the key schedule hashes K (Section 3.5), every derived parameter changes at once, so this row measures key sensitivity. In the second, a single derived parameter is perturbed directly while the key bytes are held fixed, probing the sensitivity of the stage that parameter controls.
Flipping a single key bit gives a mean, over all 128 single-bit flips and three representative images, of NPCR 99.6096 % and UACI 33.4635 % , against the 99.609 % and 33.464 % ideals, with correlation 7 × 10 − 6 , statistically indistinguishable from zero; no key bit is weak. Perturbing the ACM control parameter p by one gives NPCR 99.22 % and UACI 33.33 % , the avalanche established by the permutation stage.
The remaining rows show why the diffusion mask was revised. In the revised algorithm every round mask is the XOR of a SHA-256 counter-mode stream with the quantized logistic orbit of the round’s validated ( r l , x 0 ( l ) ) : the counter-mode stream contributes cryptographic statistical quality (Section 4.6), while the logistic term re-binds every mask byte to the chaotic parameters of the key schedule. The ablation of Table 10 makes the design necessity precise: counter-mode alone leaves the ciphertext byte-identical under a 10 − 14 perturbation of any r l or x 0 ( l ) (key sensitivity collapses to zero), and the raw logistic orbit alone fails the NIST SP 800-22 battery; only the combination carries both properties. As implemented, a 10 − 14 perturbation of any r l or x 0 ( l ) changes 99.60 – 99.62 % of ciphertext bytes (mean NPCR 99.6078 % / 99.6065 % , mean UACI 33.4593 % / 33.4610 % for the r and x 0 rows), so sensitivity to the secret is carried both by the 128-bit key through the published schedule and by every chaotic parameter it derives.
Table 10. NIST SP 800-22 statistical test results for the 10 6 -bit keystream generated by the combined mask construction of Section 3.3 (SHA-256 counter-mode stream XOR quantized logistic orbit; seeds s l , ch for rounds l = 1 , … , 4 and channels R, G, B; significance level α = 0.01 ). The table reports the minimum p-value across the three channel streams and, for multi-instance tests (frequency within a block, serial, cumulative sums, and random excursions), across all instances of that test.
One last check: we decrypted the K ciphertext with a key differing by a single bit. Recovery collapses to 8.06 – 9.26 dB PSNR against the plaintext (mean 8.69 dB), no better than a wrong key from scratch, and the keyed tag of Section 3 fails verification on every such attempt. A near-miss key leaks nothing.

4.5. Robustness to Channel Damage

Channel damage and adversarial modification are now two different questions, and the revised cipher answers them differently. Anything that happens to the plaintext before encryption is recovered exactly, the pipeline is lossless. Any damage to the ciphertext in transit is detected instead: the keyed HMAC-SHA-256 tag of Section 3 is recomputed during decryption, and a mismatch means the output is rejected outright rather than released in degraded form. The experiments below document both behaviours: damage applied to the plaintext before encryption must decrypt bit-exactly, and damage applied to the ciphertext must fail tag verification at every tested level. The figures show, for illustration only, what the rejected decryptions would have looked like; an implementation following Algorithm 3 never releases them.

4.5.1. Special Plain-Image Analysis

Worst-case inputs stress-test for leakage. We encrypted and decrypted four synthetic images with extreme redundancy: all-black, all-white, half-black/half-white, and a checkerboard. The question is whether the cipher leaks anything when the plaintext is almost fully predictable.
Table 4 bears it out. Whatever goes in, ciphertext entropy sits near the maximum ( H ≈ 7.9995 – 7.9996 bits per channel; 7.9998 when pooled as in Table 4), random-looking even from a uniform plaintext. UACI is 49.95 – 50.02 % (≈ 50.00 % ) for all four inputs, exactly the theoretical value: put a uniformly random ciphertext against an extreme binary image and the mean absolute difference tends to half the range ( 127.5 / 255 ). Low encryption PSNR ( 4.76 – 4.77 dB) and high MSE (≈ 2.17 × 10 4 ) finish the picture. No trace of the original survives. Figure 7 shows the encrypted and recovered results for all four inputs.
Figure 7. Special plain-image (known-plaintext) analysis: encrypted and decrypted results for all-black, all-white, half-half, and checkerboard inputs (decryptions shown for illustration; a tag mismatch means the output is rejected and never released).
Decryption, by contrast, loses nothing. Every recovered image returns MSE = 0.00 , PSNR = ∞ , NPCR = 0 % , UACI = 0 % , and the decrypted entropy matches the source (0.0000 for the uniform black and white images, 1.0000 for half-half and checkerboard). The permutation and diffusion invert cleanly, with no numerical loss in the cycle. So the cipher shrugs off these worst-case inputs: random ciphertext and maximal sensitivity out, an exact copy back.

4.5.2. Salt-and-Pepper Noise

Figure 8 reports the salt-and-pepper test, with noise applied to the ciphertext before decryption. The top row shows the encrypted image and its noisy versions at 1%, 5%, and 10% impulse density; all three are visually random. The bottom row gives the corresponding decryptions. At 1%, the result differs from the clean decryption only in scattered specks. Although structure and color remain, quality declines at 5%. Even with obvious noise, the image can still be recognized at 10%.
Figure 8. Salt-and-pepper noise. (Top) ciphertext corrupted with impulse noise at densities of 1%, 5%, and 10%. (Bottom) the corresponding decryptions (decryptions shown for illustration; a tag mismatch means the output is rejected and never released).
Salt-and-pepper noise corrupts individual pixels, not the image as a whole. Two findings follow. First, damage to the plaintext is invisible to the receiver: encrypting a noisy plaintext still decrypts bit-exactly at every density (24/24 images at 1%, 5%, and 10%), because the cipher is a permutation–diffusion network with no lossy stage. Second, damage to the ciphertext is caught: not one of the 72 damaged ciphertexts (24 images by three densities) passes tag verification, so the receiver requests retransmission instead of acting on corrupted data. The 28.56 , 21.58 , and 18.56 dB entries of Table 11 are the per-level mean PSNRs of the would-be decryption against the original (individual images span 16.31 – 29.79 dB), shown to make the point that a rejected decryption is also uninformative garbage, not a partially recovered image.
Table 11. Dataset-wide robustness against salt-and-pepper noise: damage applied either to the plaintext before encryption (recovery must be bit-exact) or to the ciphertext in transit (the keyed tag of Section 3.3 must reject). The last column is the mean PSNR of the (rejected) decryption against the original, showing the damaged decryption carries no usable information.

4.5.3. Gaussian Noise Damage

Figure 9 repeats the experiment with Gaussian noise added to the ciphertext at variances of 10, 30, and 50. The top-row samples remain noise-like at all three levels. The bottom row is a much harder case for recovery than impulse noise: even at the lowest variance the reconstruction is heavily degraded, and at variances 30 and 50 no usable structure remains.
Figure 9. Gaussian-noise damage: the clean decryption beside images recovered from ciphertexts corrupted with Gaussian noise at variances of 10, 30, and 50 (decryptions shown for illustration; a tag mismatch means the output is rejected and never released).
Table 12 repeats the experiment with Gaussian noise at variances 10, 30, and 50. The pattern is identical: bit-exact recovery of the noisy plaintext, and rejection of every noisy ciphertext (0/72 tag verifications). The rejected decryptions sit at 8.8 – 9.1 dB at the level means ( 6.5 – 10.3 dB across individual images), pure noise. Under the revised cipher, the old “Gaussian noise is the weak point” conclusion no longer applies in its original form: dense noise no longer degrades a released recovery, it guarantees detection.
Table 12. Dataset-wide robustness against Gaussian noise: damage applied either to the plaintext before encryption (recovery must be bit-exact) or to the ciphertext in transit (the keyed tag of Section 3.3 must reject). The last column is the mean PSNR of the (rejected) decryption against the original, showing the damaged decryption carries no usable information.

4.5.4. Occlusion Damage

Figure 10 shows the occlusion test, in which blocks of the ciphertext are erased before decryption. The top row, with 6.25%, 25%, and 50% removed, stays unintelligible and reveals nothing about the source image. The bottom row shows recovery degrading with the missing fraction. At 6.25% the output is close to the clean reconstruction. At 25% the damage is visible, but the main objects and colors remain clear. At 50% the loss is heavy, with strong noise and distortion, though the overall layout is still discernible. Resilience to data loss is therefore partial, and holds up best at low and moderate occlusion. Quantitatively, Table 13 summarizes the dataset-wide robustness: all 24 plaintext-side occlusions were recovered bit-exactly, while all 24 ciphertext-side corruptions were correctly rejected by the keyed tag, and the rejected decryptions yield only 20.65, 14.65, and 11.59 dB PSNR for 6.25%, 25%, and 50% damage respectively, confirming that no usable information leaks from a failed decryption.
Figure 10. Occlusion damage: ciphertexts with 6.25%, 25%, and 50% of the data blocked, and their decryptions. Recovery stays usable at low and moderate occlusion (decryptions shown for illustration; a tag mismatch means the output is rejected and never released).
Table 13. Dataset-wide robustness against occlusion: damage applied either to the plaintext before encryption (recovery must be bit-exact) or to the ciphertext in transit (the keyed tag of Section 3.3 must reject). The last column is the mean PSNR of the (rejected) decryption against the original, showing the damaged decryption carries no usable information.
Small occlusions behaved exactly like the other damage classes: 24/24 bit-exact recoveries when the loss happens before encryption, and 0/72 tag verifications when blocks of the ciphertext are erased. Resilience to data loss is therefore reframed: the scheme does not attempt to reconstruct missing ciphertext, it detects the loss and signals it, which is the behaviour an integrity-preserving channel wants.

4.5.5. Clipping Damage

Figure 11 shows the clipping test. The ciphertext looks the same before and after clipping at 12.5%, 25%, and 50%: noise-like in every case. The decryptions, however, degrade sharply. At 12.5% truncation, the recovered image is already heavily distorted, and at 25% and 50% the main content is largely lost under noise. Quantitatively, Table 14 confirms this behavior across the full dataset: all 24 plaintext-side clippings were recovered bit-exactly, while all 24 ciphertext-side truncations were rejected by the keyed tag, with the rejected decryptions yielding only 21.56, 17.57, and 14.56 dB PSNR at 12.5%, 25%, and 50% clipping respectively, i.e., no usable information survives the attack.
Figure 11. Clipping damage. (Top): ciphertext with 12.5%, 25%, and 50% of the data removed. (Bottom): the corresponding decryptions.
Table 14. Dataset-wide robustness against clipping: damage applied either to the plaintext before encryption (recovery must be bit-exact) or to the ciphertext in transit (the keyed tag of Section 3.3 must reject). The last column is the mean PSNR of the (rejected) decryption against the original, showing the damaged decryption carries no usable information.
Clipping shows the same split as the other three disturbances: lossless recovery on the plaintext side (24/24 bit-exact at 12.5%, 25%, and 50%), and total detection on the ciphertext side (0/72 tag verifications), with the rejected decryptions at 14.56 – 21.56 dB at the level means ( 12.31 – 22.72 dB across individual images). Overall, the robustness story of the revised cipher is binary rather than graded: whatever happens before encryption is recovered exactly, whatever happens after encryption is caught.

4.6. NIST SP 800-22 Randomness Testing of the Keystream

The pixel-level metrics above (entropy, correlation, NPCR, UACI) measure what the ciphertext looks like; they do not directly measure the statistical quality of the pseudorandom keystream that drives the diffusion phase. The masks of Section 3 are generated in SHA-256 counter mode, so, under the standard model of SHA-256 as a pseudorandom function, their bytes are uniform and independent by construction; the empirical test of this section is an end-to-end check that the implementation adds no structural defect, a seeding or counter error, a truncated buffer, block reuse across rounds, between the construction and the measured stream. An earlier design quantized the logistic orbit directly into the keystream and passed only 18 of the 72 channel–test evaluations of the same suite (Section 3); the revised combined stream is what we measure here. We therefore subject the keystream itself to the NIST SP 800-22 statistical test suite [65], the standard battery for random and pseudorandom number generators in cryptographic applications, following the same practice we adopted in our prior work [32].
A binary keystream of 10 6 bits was produced for each of the three channel streams (R, G, B) by the combined-mask generator of Section 3 under the secret key K , using the same mask generation as the diffusion phase, and each stream was passed to all fifteen tests in the suite. Each test returns a p-value; a sequence is accepted as random at the significance level α = 0.01 when p ≥ 0.01 . For tests that produce several p-values per run (non-overlapping template, serial, cumulative sums, and random excursions), Table 10 reports the minimum, i.e., the worst-case, p-value across all instances of that test and across the three channel streams.
In the full multi-stream evaluation (85 evaluable instances across the three channel streams; one random-excursions instance is not applicable), 84 pass, and Table 10 shows that fourteen of the fifteen test families pass on the worst-case channel. The passing p-values span 0.0237 – 0.9841 with no clustering near the threshold. The monobit result ( p = 0.473991 ) confirms that the bit stream is balanced, which is precisely the property a defective generator most easily loses, and the spectral, rank, linear-complexity, and Maurer results give no evidence of periodic structure, low-dimensional linear relations, or compressibility, the three weaknesses most often reported for finite-precision chaotic generators. The single failure is the overlapping-template test at p = 0.002013 . At α = 0.01 an ideal random source fails an individual test about once per hundred independent evaluations, so an isolated failure of this kind is expected by chance alone; we report it transparently rather than silently reseed, and it does not recur in any other test family or channel.
The added value of this test is that it closes the gap between image-level and bit-level evidence. Entropy, histogram, and correlation results show that the ciphertext inherits no image structure; Table 10 shows that the keystream itself offers no evidence of departure from randomness. A statistical battery of this kind can support, but never prove, the randomness of a generator; within that limit, and combined with the key-sensitivity results of Table 2, the result corroborates at bit level the uniform-distribution argument for the counter-mode construction made in Section 3, and shows that a keystream of cryptographic statistical quality feeds the diffusion layer.

4.7. Computational Efficiency and Throughput

Table 15 lists encryption and decryption times for four representative images over four rounds, in the recommended non-overlapping B = 128 block mode. Times are medians of 30 timed runs after three warm-up runs; the key schedule (under 5 ms) is excluded from the timed region and reported separately. Encryption runs from 0.1561 s (image 1) to 0.1722 s (image 3); decryption tracks it closely. Mean throughput over all 24 images is 6.79 MB/s ( 10 6 bytes/s), per-image values 6.43 – 7.56 MB/s. The overlap settings cost more: 5.96 MB/s at 50% and 3.71 MB/s at 75% (Table 5).
Table 15. Encryption and decryption time (median of 30 timed runs after 3 warm-up runs) and throughput in block mode ( B = 128 , non-overlapping) for selected images using four encryption rounds. The key schedule (<5 ms) is excluded from the timed region.
Table 16 places our measurement next to the literature values of Table 1. The proposed method row is the only one measured in this study; it reports the mean over the 24 Kodak images in block mode, 6.79 × 10 6 bytes/s, or 6630.9 KB/s (1 KB =1024 bytes, the convention of Table 16). We report no speed-up ratios. Apart from our own row, the figures come from different processors, languages, images, and round counts, and several are derived from encryption times rather than measured as throughput (see the notes to Table 1), so a ratio between them would measure the experimental setups as much as the ciphers. The table records the setting behind each figure so that readers can judge how far the numbers are comparable.
Table 16. Throughput of the proposed method alongside the literature values of Table 1. Only the last row was measured in this study.

4.8. Comparison with Previous Work and State-of-the-Art

Table 17 compares the scheme with two recent designs of ours, a Hénon-map cipher [24] and a Collatz-conjecture cipher [26], on the same Kodak data, by PSNR between plaintext and ciphertext. Low PSNR is the goal here: it means the ciphertext resembles the original less, that is, better concealment. Our scheme averages 8.56 dB ( ± 0.79 dB). That is roughly 11.0 dB below both the Hénon ( 19.60 dB) and Collatz ( 19.63 dB) ciphers, a wide margin, and it shows far less of the original, evidence of stronger confusion and diffusion. The Hénon and Collatz ciphers stay above 19 dB on average, keeping more structure in the ciphertext and so more exposed to structural inference. Ours is also the most consistent of the three: its standard deviation is 0.79 dB against 1.85 – 1.86 dB for the earlier designs.
Table 17. PSNR comparison between the proposed scheme and previous approaches (mean ± std over 24 images).
The Hénon and Collatz ciphers are nearly identical to each other (means within 0.03 dB, and nearly the same spread), so in distortion terms their strengths match. Ours sits a clear band lower, 6.30 – 9.73 dB, under the 10 dB line the literature tends to associate with excellent concealment.
PSNR alone is not a security metric, but here it agrees with the rest of the evidence: lower PSNR alongside higher entropy, near-zero correlation, and NPCR above 99.6 % . On these measures, the new design masks plaintext statistics better than our earlier Hénon and Collatz ciphers. The integrity story runs the other way from the old robustness framing: channel damage that used to degrade the recovered image is now detected and rejected by the keyed tag, at every tested level, so the scheme’s remaining engineering gap is not graceful degradation but whatever application-level retransmission or forward-correction policy the deployment chooses.

5. Conclusions

This paper presented a four-round confusion–diffusion image encryption scheme that couples a block-local Arnold Cat Map permutation with an S-box substitution stage and a combined SHA-256/logistic-map XOR diffusion, keyed through an explicit SHA-256 schedule and bound to the plaintext by a keyed HMAC-SHA-256 tag, and used it to settle a question the literature usually leaves open. A systematic study of five block sizes (16 to 256) and three overlap ratios (0%, 50%, and 75%) showed that overlap adds substantial computational cost up to 86 % longer encryption time and 45 % lower throughput at 75% overlap, while leaving the statistical security essentially unchanged, so the non-overlapping 128 × 128 configuration was adopted as the final design. Practitioners building ciphers of this shape can therefore skip the overlapping variants entirely: on these measurements they pay for mixing they already have.
On the 24-image Kodak suite, the chosen configuration delivered near-ideal randomness: information entropy of about 7.9998 bits pooled across the three channels, a mean chi-square of 253.44 against an expectation of 255 for a truly uniform histogram, adjacent-pixel correlation close to zero, and differential scores of NPCR 99.61 % and UACI 33.46 % against the 99.609 % / 33.464 % ideals. The 128-bit key space, combined with sensitivity to perturbations as small as 10 − 14 in the chaotic parameters, bounds exhaustive search over the input-key domain at 2 128 trials; these measurements are not a proof of resistance to key-recovery attack. Decryption is exactly lossless (MSE = 0 , PSNR = ∞ , CC = 1 ). The scheme reaches a mean throughput of 6.79 MB/s ( 10 6 bytes/s) in our Python implementation, enough for low-rate image snapshots or compressed streams but not for uncompressed video at 30 fps, and it provides stronger statistical masking (mean PSNR of 8.56 dB) than our earlier Hénon- and Collatz-based designs [24,26].
Robustness is now a binary property of the construction. Whatever happens to the plaintext before encryption is recovered exactly: the pipeline is lossless; whatever happens to the ciphertext in transit is detected: the keyed tag rejects every one of the 288 damaged ciphertexts we tested across four damage classes and three levels each, so the receiver never acts on corrupted data. Two directions follow. The first is throughput engineering: a vectorised or hardware implementation should close the gap to real-time video rates. The second is deployment: the tag gives authentication, and the natural next step is a complete AEAD framing (associated data, sequence numbers) for multi-image sessions. Applied to stored and transmitted images, the scheme complements rather than replaces access control, anomaly detection, and provenance mechanisms operating at other layers of the same systems.

Author Contributions

Conceptualization, C.O., A.A.-H. and M.A.; formal analysis, C.O., A.A.-H. and M.A.; methodology, A.A.-H. and C.O.; software, A.A.-H. and M.A.; supervision, C.O. and M.A.; writing—original draft preparation, M.A. and A.A.-H.; writing—review and editing, M.A., C.O. and A.A.-H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The Kodak Lossless True Color Image Suite analyzed in this study is publicly available [28]. The full source code, along with the scripts used to generate the figures and to compute the measurement results, is openly available on Zenodo at https://zenodo.org/records/23300528 (accessed on 11 October 2026).

Acknowledgments

During the preparation of this manuscript, the authors used a large language model assistant for language editing of the English text. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ACMArnold Cat Map
AESAdvanced Encryption Standard
CCCorrelation Coefficient
CLMChaotic Logistic Map
CLMKChaotic Logistic Map Key
IoTInternet of Things
KSKey Space
MSEMean Square Error
NPCRNumber of Pixels Change Rate
PKPrivate Key
PSNRPeak Signal-to-Noise Ratio
SHA-256Secure Hash Algorithm, 256-bit
SSIMStructural Similarity Index Measure
UACIUnified Average Changing Intensity

Appendix A. Per-Image Results for Overlapping Configurations

Table A1 and Table A2 report the encryption and decryption quality metrics (MSE, PSNR, CC) when block overlap is introduced at 50% and 75%, respectively. These results should be read together with the no-overlap case in Table 3, since the three tables examine the same set of block sizes under different overlap settings. Each table lists four representative images (1, 5, 19, 23) together with the mean over all n = 24 Kodak images. For the 50% overlap setting (Table A1), the mean MSE values fall between 9210.43 and 9215.20, with mean PSNR around 8.56 dB and mean CC between − 0.000130 and 0.000271 . The 75% overlap results (Table A2) show the same behavior, with mean MSE between 9213.60 and 9218.64, mean PSNR around 8.56 dB, and mean CC near zero ( − 0.000202 to 0.000278 ).
Table A1. Quality metrics for encryption and decryption, evaluated across different block sizes with 50% block overlap. Individual results are presented for images 1, 5, 19, and 23, along with the average metrics calculated over all n = 24 images. Decryption is bit-exact for every image and configuration.
Table A2. Quality metrics for encryption and decryption, evaluated across different block sizes with 75% block overlap. Individual results are presented for images 1, 5, 19, and 23, along with the average metrics calculated over all n = 24 images. Decryption is bit-exact for every image and configuration.

Appendix B. Full Differential Analysis for Overlapping Configurations

Table A3 and Table A4 report the SSIM, UACI, and NPCR metrics for the 50% and 75% overlap configurations across all tested block sizes. As in the no-overlap case (Table 7), the encryption-phase SSIM values remain near zero (means of 0.00913 – 0.00938 for 50% overlap and 0.00924 – 0.00935 for 75% overlap), the mean NPCR stays around 99.61% (all block-size means between 99.609% and 99.610%), and the mean UACI is essentially constant at 66.46 – 33.47 % , while decryption is exact in every row (SSIM = 1 , UACI = 0 , NPCR = 0 ).
Table A3. Grouped comparison of encryption and decryption SSIM, UACI, and NPCR metrics for different block sizes with 50% block overlap. NPCR and UACI are differential measures between the ciphertexts of a plaintext and a one-bit-flipped variant (ten random positions per image). Decryption is bit-exact for every image and configuration.
Table A4. Grouped comparison of encryption and decryption SSIM, UACI, and NPCR metrics for different block sizes with 75% block overlap. NPCR and UACI are differential measures between the ciphertexts of a plaintext and a one-bit-flipped variant (ten random positions per image). Decryption is bit-exact for every image and configuration.

Appendix C. Iteration Count Versus ACM Period

The block permutation of Section 3 depends on the key: the shear parameters ( p , q ) and the per-round application count T are derived from K , so the period P 1 of a single ACM application on a B × B grid, and hence the question whether the composed four-round permutation φ 4 T collapses to the identity, is a property of the key, not of the geometry alone. For the key used throughout Section 4 ( p = 250 , q = 72 , T = 6 , counter c = 1 ), Table A5 reports the measured single-application order of the block permutation, 4 T mod P 1 , and the effective order of φ 4 T .
For the paper key, the composed permutation is the identity only on B = 16 (Table A5): on that single geometry the confusion stage contributes no net spatial permutation over four rounds, and the B = 16 rows of Table 3, Table 7, Table A1 and Table A3 are measured on that factually weaker configuration, with security resting on the S-box and the combined mask. The security metrics remain at their ideals on those rows because the diffusion avalanche is mask-driven (Section 4.4.4), but we report the weakness explicitly rather than silently exclude it. How likely such a collapse is, in general, is a key-sampling question, so we measured it: over 200 random keys, the fraction of keys for which the composed permutation is the identity is 56 % at B = 16 , 40 % at B = 32 , 31 % at B = 64 , 22.5 % at B = 128 , and 17 % at B = 256 . Small blocks are therefore not merely weaker on average, they are the geometries most likely to receive a key whose confusion stage cancels itself, one more reason the recommended geometry sits at the large-block end of the sweep. The configuration rule that removes the risk is to draw T per geometry such that P 1 ∤ 4 T , equivalently to use a round-dependent count T l , and we identify this rule as the refinement to apply when small blocks are used in practice. Excluding the B = 16 geometry changes none of the conclusions: the per-configuration mean MSE spans 9213.35 – 9215.60 (non-overlapping configurations), pooled over the five non-overlapping configurations the mean is 9214.48 with B = 16 included and 9214.44 without it, and the per-block mean NPCR spans 99.6091 – 99.6096 % .
Table A5. Block-permutation order for the paper key ( p = 250 , q = 72 , T = 6 ): order P 1 of a single ACM application on the B × B grid, 4 T mod P 1 , and effective order of the composed four-round permutation φ 4 T .

Reduction of the Round Structure

The four-round confusion stage can be reduced exactly, and the reduction also explains why the encryption-quality metrics do not depend on whether B = 16 is included in the sweep. Write π for the block pixel permutation applied in one round (the composed ACM application φ T ), S for the S-box, and m for the round mask. Because the same S-box is applied to every byte of the block, it commutes with any pixel permutation:
S ( π ( v ) ) = π ( S ( v ) ) for every byte- vector v ,
and because the mask enters by XOR, it passes through the permutation as an XOR with the permuted mask:
π ( v ) ⊕ m = π v ⊕ π − 1 ( m ) .
Applying (A1) and (A2) across the four rounds collapses the confusion–diffusion cascade to a position-wise byte bijection (the S-box and mask layers acting per position) followed by the single composed spatial permutation φ 4 T ; the same reduction holds for the overlapping configurations, whose block permutations are composed across the overlapping grid. The quality metrics are therefore essentially geometry-independent, as Table 2, Table 3, Table 4, Table 5, Table 6, Table 7, Table 8, Table 9, Table 10, Table 11, Table 12, Table 13, Table 14, Table 15, Table 16, Table 17, Table A1, Table A2, Table A3 and Table A4 confirm: the per-configuration mean MSE spans 9213.35 – 9215.60 , pooled over all configurations the mean is 9214.48 with B = 16 included and 9214.44 with it excluded, and the per-block mean NPCR spans 99.6091 – 99.6096 % . Removing the factually weaker B = 16 geometry changes none of the paper’s conclusions.

References

  1. Vaidya, S. Enhancing Cybersecurity in Healthcare IoT Ecosystems: A Comprehensive Framework for Securing Medical Data and Devices. Educ. Adm. Theory Pract. 2024, 30, 270–277. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Wang, Y.; Attebury, G.; Ramamurthy, B. A survey of security issues in wireless sensor networks. IEEE Commun. Surv. Tutor. 2006, 8, 2–23. [Google Scholar] [CrossRef] [Scilit]
  3. Cluley, G. 750,000 Patients’ Medical Records Exposed After Data Breach at French Hospital; Tripwire: Portland, OR, USA, 2024. [Google Scholar]
  4. Kwon, J.; Johnson, M.E. Unraveling the Impact of Data Breaches: Evidence from the US Healthcare Sector. Prod. Oper. Manag. 2024, 34, 1779–1798. [Google Scholar] [CrossRef] [Scilit]
  5. Choi, S.J.; Johnson, M.E. The relationship between cybersecurity ratings and the risk of hospital data breaches. J. Am. Med. Inform. Assoc. 2021, 28, 2085–2092. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Clement, N. Mergers Effect on Data Breaches in Hospitals, 2024. Available online: https://www.nanclement.com/files/mergerbreaches.pdf (accessed on 26 September 2026).
  7. Johnson, G. Consumer in a Coalmine: Lax Security of IOT Video Devices Puts Corporations before Users. Ariz. Law J. Emerg. Technol. 2021, 5, i. [Google Scholar] [CrossRef] [Scilit]
  8. Lee, I. Internet of Things (IoT) cybersecurity: Literature review and IoT cyber risk management. Future Internet 2020, 12, 157. [Google Scholar] [CrossRef] [Scilit]
  9. Xie, M.; Kulshrestha, M.; Wang, S.; Yang, J.; Chakrabarti, A.; Zhang, N.; Vorobeychik, Y. Proves: Establishing image provenance using semantic signatures. In Proceedings of the 2022 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV); IEEE: Piscataway, NJ, USA, 2022; pp. 3017–3026. [Google Scholar]
  10. Swire, P. From real-time intercepts to stored records: Why encryption drives the government to seek access to the cloud. Int. Data Priv. Law 2012, 2, 200–206. [Google Scholar] [CrossRef] [Scilit][Green Version]
  11. Grandison, T.; Bhatti, R. HIPAA compliance and patient privacy protection. In MEDINFO 2010; IOS Press: Amsterdam, The Netherlands, 2010; pp. 884–888. [Google Scholar]
  12. Verkada. How to Protect Your Security System from Vulnerabilities. Data Security: Overview, Best Practices and FAQs. 19 April 2024. Available online: https://www.verkada.com/security/ (accessed on 20 August 2026).
  13. Kanwal, N.; Asghar, M.N.; Ansari, M.S.; Fleury, M.; Lee, B.; Herbst, M.; Qiao, Y. Preserving chain-of-evidence in surveillance videos for authentication and trust-enabled sharing. IEEE Access 2020, 8, 153413–153424. [Google Scholar] [CrossRef] [Scilit]
  14. Ibrahim, D.; Ahmed, K.; Abdallah, M.; Ali, A.A. A New Chaotic-Based RGB Image Encryption Technique Using a Nonlinear Rotational 16x16 DNA Playfair Matrix. Cryptography 2022, 6, 28. [Google Scholar] [CrossRef] [Scilit]
  15. Vargas Valencia, J.A.; Marín Arango, C.A.; García, J.D.; Uribe Guerra, R.; Duque Gómez, L.F. Chaotic Image Encryption by Intra-Channel Diffusion and Inter-Channel Confusion. J. Cybersecur. Priv. 2026, 6, 101. [Google Scholar] [CrossRef] [Scilit]
  16. Aditya Pai, H.; Pareek, P.K.; Guru Prasad, M.S.; Singh, P.; Deshpande, B.K. Image Encryption Method Using Chaotic Map and DNA Encoding. Nat. Volatiles Essent. Oils 2021, 8, 10391–10400. [Google Scholar]
  17. Kaur, G.; Kumar, S. Image Encryption Method Based On Metaheuristic Social Group Optimization Algorithm. Int. J. Environ. Sci. 2025, 11, 1712–1725. [Google Scholar] [CrossRef] [Scilit]
  18. Benaissi, S.; Chikouche, N.; Hamza, R. A Novel Image Encryption Algorithm Based on Hybrid Chaotic Maps Using a Key Image. Optik 2023, 272, 170316. [Google Scholar] [CrossRef] [Scilit]
  19. Abu-Faraj, M.; Al-Hyari, A.; Al-Ahmad, B.; Alqadi, Z.; Ali, B.; Alhaj, A. Building a Secure Image Cryptography System using Parallel Processing and Complicated Dynamic Length Private Key. Appl. Math. Inf. Sci. 2022, 16, 1017–1026. [Google Scholar] [CrossRef] [Scilit]
  20. Hreshee, S.S.H. Design and Implementation of Voice Encryption System Using XOR Based on Hénon Map. In Proceedings of the International Conference on Advanced Science and Engineering (ICOASE), Virtual, 24–25 January 2021. [Google Scholar]
  21. Vargas Valencia, J.A.; Londoño-Arboleda, M.A.; Salinas Jiménez, H.D.; Marín Arango, C.A.; Duque Gómez, L.F. Image Encryption Using Chaotic Box Partition–Permutation and Modular Diffusion with PBKDF2 Key Derivation. J. Cybersecur. Priv. 2026, 6, 21. [Google Scholar] [CrossRef] [Scilit]
  22. Zhao, H.; Xie, S.; Zhang, J.; Wu, T. Efficient image encryption using two-dimensional enhanced hyperchaotic Henon map. J. Electron. Imaging 2020, 29, 023007. [Google Scholar] [CrossRef] [Scilit]
  23. Alghamdi, Y.; Munir, A. Image Encryption Algorithms: A Survey of Design and Evaluation Metrics. J. Cybersecur. Priv. 2024, 4, 126–152. [Google Scholar] [CrossRef] [Scilit]
  24. Al-Hyari, A.; Abu-Faraj, M.; Obimbo, C.; Alazab, M. Chaotic Hénon–Logistic Map Integration: A Powerful Approach for Safeguarding Digital Images. J. Cybersecur. Priv. 2025, 5, 8. [Google Scholar] [CrossRef] [Scilit]
  25. Abu-Faraj, M.; Al-Hyari, A.; Obimbo, C.; Aldebei, K.; Altaharwa, I.; Alqadi, Z.; Almanaseer, O. Protecting Digital Images Using Keys Enhanced by 2D Chaotic Logistic Maps. Cryptography 2023, 7, 20. [Google Scholar] [CrossRef] [Scilit]
  26. Al-Hyari, A.; Obimbo, C.; Abu-Faraj, M.M.; Al-Taharwa, I. Generating Powerful Encryption Keys for Image Cryptography With Chaotic Maps by Incorporating Collatz Conjecture. IEEE Access 2024, 12, 4825–4844. [Google Scholar] [CrossRef] [Scilit]
  27. Abba, A.; Teh, J.S.; Yusoff, M.N.; Anwar, A. Towards Analyzable Design Paradigms for Chaos-Based Cryptographic Primitives. J. Cybersecur. Priv. 2025, 5, 64. [Google Scholar] [CrossRef] [Scilit]
  28. Eastman Kodak Company. Kodak Lossless True Color Image Suite. 1993. Available online: https://r0k.us/graphics/kodak/ (accessed on 19 June 2026).
  29. Pathak, A.; Pal, S.; Karmakar, J.; Mondal, H.; Mandal, M.K. Review on the Image Encryption with Hyper-Chaotic Systems. In Proceedings of the Soft Computing and Signal Processing; Springer: Singapore, 2023; pp. 369–377. [Google Scholar]
  30. Rajendran, S.; Doraipandian, M.; Seethalakshmi, R.; Kirthivasan, K. An image cipher based on bio-molecular hyper chaotic system with dual diffusion scheme. Multimed. Tools Appl. 2024, 83, 40629–40655. [Google Scholar] [CrossRef] [Scilit]
  31. Chen, H.; Bai, E.; Jiang, X.; Wu, Y. A Fast Image Encryption Algorithm Based on Improved 6-D Hyper-Chaotic System. IEEE Access 2022, 10, 116031–116044. [Google Scholar] [CrossRef] [Scilit]
  32. Gabr, M.; Korayem, Y.; Chen, Y.L.; Yee, P.L.; Ku, C.S.; Alexan, W. R3—Rescale, Rotate, and Randomize: A Novel Image Cryptosystem Utilizing Chaotic and Hyper-Chaotic Systems. IEEE Access 2023, 11, 119284–119312. [Google Scholar] [CrossRef] [Scilit]
  33. Heucheun Yepdia, L.M.; Tiedeu, A.; Kom, G. A robust and fast image encryption scheme based on a mixing technique. Secur. Commun. Netw. 2021, 2021, 6615708. [Google Scholar] [CrossRef] [Scilit]
  34. Tang, Z.; Song, J.; Zhang, X.; Sun, R. Multiple-image encryption with bit-plane decomposition and chaotic maps. Opt. Lasers Eng. 2016, 80, 1–11. [Google Scholar] [CrossRef] [Scilit]
  35. Zhang, X.; Wang, X. Multiple-image encryption algorithm based on DNA encoding and chaotic system. Multimed. Tools Appl. 2019, 78, 7841–7869. [Google Scholar] [CrossRef] [Scilit]
  36. Asgari-Chenaghlu, M.; Balafar, M.A.; Feizi-Derakhshi, M.R. A novel image encryption algorithm based on polynomial combination of chaotic maps and dynamic function generation. Signal Process. 2019, 157, 1–13. [Google Scholar] [CrossRef] [Scilit]
  37. Ibrahim, S.; Alharbi, A. Efficient Image Encryption Scheme Using Henon Map, Dynamic S-Boxes and Elliptic Curve Cryptography. IEEE Access 2020, 8, 194289–194302. [Google Scholar] [CrossRef] [Scilit]
  38. Hua, Z.; Zhou, Y.; Huang, H. Cosine-transform-based chaotic system for image encryption. Inf. Sci. 2019, 480, 403–419. [Google Scholar] [CrossRef] [Scilit]
  39. Kumar, M. A new RGB image encryption algorithm based on hyper-chaotic-discrete-wavelet-packet-transform. Multimed. Tools Appl. 2024, 83, 58349–58374. [Google Scholar] [CrossRef] [Scilit]
  40. Malik, M.G.A.; Bashir, Z.; Iqbal, N.; Imtiaz, M.A. Color Image Encryption Algorithm Based on Hyper-Chaos and DNA Computing. IEEE Access 2020, 8, 88093–88107. [Google Scholar] [CrossRef] [Scilit]
  41. Shen, Y.; Huang, J.; Chen, L.; Wen, T.; Li, T.; Zhang, G. Fast and Secure Image Encryption Algorithm with Simultaneous Shuffling and Diffusion Based on a Time-Delayed Combinatorial Hyperchaos Map. Entropy 2023, 25, 753. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  42. Fan, W.; Li, T.; Wu, J.; Wu, J. Chaotic Color Image Encryption Based on Eight-Base DNA-Level Permutation and Diffusion. Entropy 2023, 25, 1268. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  43. Wang, L.; Ran, Q.; Ding, J. Image Encryption Using Quantum 3D Mobius Scrambling and 3D Hyper-Chaotic Henon Map. Entropy 2023, 25, 1629. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  44. Soleymani, A.; Nordin, M.J.; Sundararajan, E. A Chaotic Cryptosystem for Images Based on Henon and Arnold Cat Map. Sci. World J. 2014, 2014, 536930. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  45. Mishra, K.; Saharan, R. A Fast Image Encryption Technique Using Henon Chaotic Map. In Proceedings of the Progress in Advanced Computing and Intelligent Engineering; Springer: Singapore, 2019; pp. 329–339. [Google Scholar]
  46. Abu-Faraj, M.; Al-Hyari, A.; Alqadi, Z. Secure and Efficient Color Image Cryptography Using Two Secret Keys. In Proceedings of the Innovations in Smart Cities Applications Volume 7; Springer: Cham, Switzerland, 2024; pp. 549–560. [Google Scholar]
  47. Jiang, Q.; Yu, S.; Wang, Q. Cryptanalysis of an Image Encryption Algorithm Based on Two-Dimensional Hyperchaotic Map. Entropy 2023, 25, 395. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  48. Wu, Y.; Zeng, J.; Dong, W.; Li, X.; Qin, D.; Ding, Q. A Novel Color Image Encryption Scheme Based on Hyperchaos and Hopfield Chaotic Neural Network. Entropy 2022, 24, 1474. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  49. Alfarajat, M.; Alhaj, A.; Al-Hyari, A. A Finite-State Audit of Chaotic Maps for Image Encryption: Image Fraction, Cyclic Fraction and Seed Diversity. Cryptography 2026, 10, 73. [Google Scholar] [CrossRef] [Scilit]
  50. Shao, L.; Qin, Z.; Liu, B.; Gao, H.; Qin, J. 2D bi-scale rectangular mapping and its application in image scrambling. J. Comput.-Aided Des. Comput. Graph. 2009, 21, 1025–1034. [Google Scholar]
  51. Zhang, X.; Fan, X.; Wang, J.; Zhao, Z. A chaos-based image encryption scheme using 2D rectangular transform and dependent substitution. Multimed. Tools Appl. 2016, 75, 1745–1763. [Google Scholar] [CrossRef] [Scilit]
  52. O’Dea, A. ACM and rectangular images: Overlapping partitions, implementation, and periodicity analysis. PLoS ONE 2024, 19, e0303589. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  53. Tang, Z.; Zhang, X. Secure Image Encryption without Size Limitation Using Arnold Transform and Random Strategies. J. Multimed. 2011, 6, 202–206. [Google Scholar] [CrossRef] [Scilit]
  54. Tang, Z.; Zhang, X.; Lan, W. Efficient image encryption with block shuffling and chaotic map. Multimed. Tools Appl. 2015, 74, 5429–5448. [Google Scholar] [CrossRef] [Scilit]
  55. Tang, Z.; Wang, F.; Zhang, X. Image encryption based on random projection partition and chaotic system. Multimed. Tools Appl. 2017, 76, 8257–8283. [Google Scholar] [CrossRef] [Scilit]
  56. Turan, M.; Gökçay, E.; Tora, H. An unrestricted Arnold’s cat map transformation. Multimed. Tools Appl. 2024, 83, 70921–70935. [Google Scholar] [CrossRef] [Scilit]
  57. Tora, H.; Gokcay, E.; Turan, M.; Buker, M. A generalized Arnold’s Cat Map transformation for image scrambling. Multimed. Tools Appl. 2022, 81, 31349–31362. [Google Scholar] [CrossRef] [Scilit]
  58. Solak, E.; Çokal, C.; Yıldız, O.T.; Bıyıkoğlu, T. Cryptanalysis of Fridrich’s Chaotic Image Encryption. Int. J. Bifurc. Chaos 2010, 20, 1405–1413. [Google Scholar] [CrossRef] [Scilit]
  59. Zhang, L.Y.; Liu, Y.; Wang, J.; Zhou, J.; Zhang, G.; Chen, G. Improved known-plaintext attack to permutation-only multimedia ciphers. Inf. Sci. 2018, 430–431, 228–239. [Google Scholar] [CrossRef] [Scilit]
  60. Dyson, F.J.; Falk, H. Period of a Discrete Cat Mapping. Am. Math. Mon. 1992, 99, 603–614. [Google Scholar] [CrossRef] [Scilit]
  61. Chen, F.; Wong, K.W.; Liao, X.; Xiang, T. Period distribution of generalized discrete Arnold cat map. Theor. Comput. Sci. 2014, 552, 13–25. [Google Scholar] [CrossRef] [Scilit]
  62. Li, C.; Tan, K.; Feng, B.; Lü, J. The Graph Structure of the Generalized Discrete Arnold’s Cat Map. IEEE Trans. Comput. 2022, 71, 364–377. [Google Scholar] [CrossRef] [Scilit]
  63. Behrends, E. The ghosts of the cat. Ergod. Theory Dyn. Syst. 1998, 18, 321–330. [Google Scholar] [CrossRef] [Scilit][Green Version]
  64. Alvarez, G.; Li, S. Some Basic Cryptographic Requirements for Chaos-Based Cryptosystems. Int. J. Bifurc. Chaos 2006, 16, 2129–2151. [Google Scholar] [CrossRef] [Scilit]
  65. National Institute of Standards and Technology. A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications; Technical Report NIST SP 800-22 Rev. 1a; NIST: Gaithersburg, MD, USA, 2010.
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.