Image Encryption Using MATLAB: A Chaos-Based Permutation–Diffusion Approach
The rapid exchange of digital images over open networks makes their confidentiality a practical concern, and conventional ciphers such as AES are not ideally matched to the high redundancy and strong pixel correlation of image data. This paper presents a symmetric image encryption scheme implemented in MATLAB that combines chaotic permutation with a two-pass nonlinear diffusion stage. Two logistic-map sequences are sorted to scramble the rows and columns of a grayscale image, and a third keystream drives a forward and backward modular-addition and XOR chain so that a change in one plain pixel spreads over the entire cipher image. The secret key consists of three real-valued parameters. The scheme was evaluated on four 256 × 256 grayscale test images using histogram analysis, information entropy, adjacent-pixel correlation, NPCR and UACI differential measures, key sensitivity, and noise and cropping attacks. The cipher images showed near-uniform histograms, an information entropy of about 7.9968 bits per pixel, adjacent-pixel correlation coefficients close to zero, and NPCR and UACI values of about 99.79% and 33.42%. A key change of 10⁻¹⁰ produced an unrecognisable result, and decryption with the correct key was lossless. These results indicate that the scheme is simple, fast to prototype in MATLAB, and resistant to the statistical and differential attacks considered.
Authors
- Prashant Bachanna (ORCID: https://orcid.org/0000-0003-1264-7787)
- Metta Rithesh
- Dodla Ashwin
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-02
- DOI
- https://doi.org/10.5281/zenodo.24730793
- Primary Topic
- Chaos-based Image/Signal Encryption
- Type
- article
- Field-Weighted Citation Impact
- 0.00