Abstract
In recent years, extensive research has focused on encryption algorithms for square images, with relatively little attention given to nonsquare images. This paper introduces a novel encryption algorithm tailored for nonequal length images, integrating bit-plane chaotic mapping and Arnold transformation. To effectively implement the algorithm, the plain image is initially transformed into two equal-sized binary sequences. A new diffusion strategy is then introduced to mutually diffuse these sequences, followed by the use of a chaotic map to control the swapping of binary elements between them, enabling permutation of bits across different bitplanes. Finally, the positional information of the image is scrambled using the Arnold transform, resulting in the generation of the encrypted image. By utilizing nonequal Arnold transformation parameters and the initial value of the Lorenz chaotic map as keys, the transmission of keys is simplified, and the cryptosystem gains infinite key space to resist brute force attacks. Experimental results and security analysis confirm the effectiveness of the proposed quantum image encryption algorithm in encrypting nonsquare images, demonstrating good performance in terms of nonstatistical properties, key sensitivity, and robustness. Furthermore, simulation experiments based on Qiskit successfully validate the correctness and feasibility of the quantum image encryption algorithm.
Introduction
Most existing image encryption research focuses on square images ($N \times N$). However, real-world images are frequently non-square ($M \times N$). Standard scrambling techniques, like the classic Arnold transform, are mathematically tied to square dimensions, creating a gap in securing arbitrary-sized images. Furthermore, as quantum computing matures, there is a growing need for encryption models that are compatible with quantum image representations. This paper addresses these challenges by providing a flexible, secure, and quantum-ready algorithm that handles nonequal-length images without requiring padding or cropping.
Methodology
The proposed algorithm follows a multi-stage process designed to maximize security through bit-level manipulation and chaotic systems.
- Bit-plane Decomposition (BBD): Instead of treating pixels as single units, the image is decomposed into 8 binary bit-planes. This allows for finer-grained manipulation and higher security.
- Mutual Diffusion: The bit-planes are divided into two groups and transformed into binary sequences. A novel diffusion strategy is applied where these sequences mutually influence each other, ensuring that a single bit change in the original image propagates throughout the entire ciphertext.
- Chaotic Confusion: The Lorenz chaotic map generates a keystream used to swap binary elements between the two sequences. This effectively permutes bits across different bit-planes, significantly increasing complexity.
- Nonequal-length Arnold Transformation: A generalized version of the Arnold transform is used to scramble the positional information of the image, specifically adapted to handle arbitrary rectangular dimensions.
- Quantum Implementation: The algorithm is designed using the Generalized Quantum Image Representation (GQIR) model and simulated using IBM’s Qiskit framework to prove its feasibility for future quantum hardware.
Experimental Evaluation
The authors evaluated their algorithm using standard grayscale test images of varying sizes:
- Lena (256 × 256)
- Tank (256 × 256)
- Baboon (512 × 512)
- Child (234 × 246) — This non-square image specifically demonstrates the algorithm's flexibility.
Key Insights
- Bit-level Scrambling: By operating on bit-planes rather than pixels, the algorithm achieves much higher "confusion." Swapping bits between different planes (e.g., moving a bit from the most significant plane to the least significant) destroys the visual structure more effectively than simple pixel shuffling.
- "Infinite" Key Space: By using double-precision floating-point numbers for the Lorenz map parameters and Arnold transform coefficients, the theoretical key space is extremely large, making brute-force attacks computationally impossible.
- Quantum-Classical Hybrid Logic: Successful simulation on Qiskit demonstrates that this is a blueprint for secure image processing in the upcoming quantum era.
Results and Security Analysis
- Statistical Security: Encrypted images showed nearly uniform histograms, and correlation coefficients between adjacent pixels dropped from ~0.9 to near 0.
- Information Entropy: The entropy of encrypted images reached ~7.99 (where 8 is the ideal maximum), indicating a high degree of randomness.
- Differential Attack Resistance: NPCR values were >99.6% and UACI values were ~33.4%, meeting theoretical standards for strong encryption.
- Robustness: The algorithm successfully decrypted images even after noise (salt & pepper) or partial cropping (occlusion attacks).
- Efficiency: Average encryption time was 2.06 seconds, outperforming several existing chaotic encryption schemes.
Conclusion
The primary limitation is that the quantum portion of the algorithm is currently simulated on classical hardware. While the logic is sound, real-world performance on actual Noisy Intermediate-Scale Quantum (NISQ) devices remains to be tested. Future work could focus on optimizing the quantum circuit depth and gate count to make it more practical for current-generation quantum hardware.
Summary updated