Abstract
Because Gray code has good spatial traversal and easy to generate binary conversion, this paper proposes an image encryption algorithm based on Gray code scrambling. Firstly, the Lorenz system is used to generate chaotic sequences for binary and Gray code transformation to achieve global scrambling. Different from the traditional row (column) XOR method, this paper uses the snake shape to diffuse the row (column) XOR. The lines of the scrambled image are first XORed from left to right in a serpentine order, and the row elements are cyclically shifted. Then, the columns of the image are XORed from right to left in a serpentine order, and the column elements are cyclically shifted. Finally, the scrambled image is further diffused. The comparative experiment shows that the algorithm has good encryption effect. Not only is it well resistant to differential cryptanalysis and exhaustive attack, but it also improves key sensitivity.

















Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.References
Wang, X.Y., Feng, L., Zhao, H.Y.: Fast image encryption algorithm based on parallel computing system. Inf. Sci. 486, 340–358 (2019)
Farah M A B, Farah A, Farah T. An image encryption scheme based on a new hybrid chaotic map and optimized substitution box. Nonlinear Dynamics, 2019: 1–24
Liu, Y., Wang, J., Fan, J., Gong, L.H.: Image encryption algorithm based on chaotic system and dynamic S-boxes composed of DNA sequences. Multimedia Tools and Applications 75(8), 4363–4382 (2016)
Sahasrabuddhe, A., Laiphrakpam, D.S.: Multiple images encryption based on 3D scrambling and hyper-chaotic system. Inf. Sci. 550, 252–267 (2021)
Midoun, M.A., Wang, X., Talhaoui, M.Z.: A sensitive dynamic mutual encryption system based on a new 1D chaotic map. Opt Lasers Eng 139, 106485 (2021)
Wang, X.Y., Gu, S.X., Zhang, Y.Q.: Novel image encryption algorithm based on cycle shift and chaotic system. Opt. Lasers Eng. 68, 126–134 (2015)
Wang, X.Y., Gao, S.: Image encryption algorithm for synchronously updating Boolean networks based on matrix semi-tensor product theory. Inf. Sci. 507, 16–36 (2020)
Fridrich, J.: Symmetric ciphers based on two-dimensional chaotic maps. In J Bifurcat Chaos 8(6), 1259–1284 (1998)
Zhang, Y., Xiao, D., Wen, W., Li, M.: Breaking an image encryption algorithm based on hyper-chaotic system with only one round diffusion process. Nonlinear Dyn. 76(3), 1645–1650 (2014)
Li, C.Q., Li, S.J., Lo, K.T.: Breaking a modified substitution–diffusion image cipher based on chaotic standard and logistic maps. Commun. Nonlinear Sci. Numer. Simul. 16(2), 837–843 (2011)
Rhouma, R., Solak, E., Belghith, S.: Cryptanalysis of a new substitution-diffusion based image cipher. Commun. Nonlinear Sci. Numer. Simul. 15(7), 1887–1892 (2010)
Artiles, J.A.P., Chaves, D.P.B., Pimentel, C.: Image encryption using block cipher and chaotic sequences. Sign Process: Image Commun 79, 24–31 (2019)
Wang, K., Pei, W.J., Zou, L.H., Song, A.G., He, Z.Y.: On the security of 3D cat map based symmetric image encryption scheme. Phys. Lett. A 343(6), 432–439 (2005)
Wang, X., He, G.: Cryptanalysis on a novel image encryption method based on total shuffling scheme. Opt Communicat 284(24), 5804–5807 (2011)
Rehman, A.U., Liao, X., Kulsoom, A., Abbas, S.A.: Selective encryption for gray images based on chaos and DNA complementary rules. Multimed Tools Applicat 74(13), 4655–4677 (2015)
Zhou, Y.C., Panetta, K., Agaian, S., Chen, C.L.P.: (n, k, p)-Gray code for Image Systems. IEEE Transact On Cybernet 44(3), 515–529 (2013)
Ding, W.X., Lu, H.Z., Wang, H., Xie, J.B.: Fast Gray code sequence subsection scrambling video encryption algorithm based on chaos system. J Communicat 28(9), 34–39 (2007)
Zhao, F., Li, C., Liu, C., Song, Y.: Color image encryption algorithm based on hyperchaotic and security analysis. J Electr Imag 28(4), 043011 (2019)
Nabil, B.S., Nahed, A., Kais, B., Mohsen, M.: A novel chaotic image cryptosystem based on DNA sequence operations and single neuron model. Multimed Tools Applicat 77(23), 30993–31019 (2018)
Wang, T., Wang, M.: Hyperchaotic image encryption algorithm based on bit-level permutation and DNA encoding. Opt Laser Technol 132, 106355 (2020)
Guesmi, R., Farah, M.A.B.: A new efficient medical image cipher based on hybrid chaotic map and DNA code. Multimed Tools Applicat 80(2), 1925–1944 (2021)
Faragallah, O.S., El-sayed, H.S., Afifi, A., El-Shafai, W.: Efficient and secure opto-cryptosystem for color images using 2D logistic-based fractional Fourier transform. Opt Lasers Eng 137, 106333 (2021)
Lang, J., Tao, R., Wang, Y.: Image encryption based on the multiple-parameter discrete fractional Fourier transform and chaos function. Opt Communicat 283(10), 2092–2096 (2010)
Xu, L., Li, Z., Li, J., Hua, W.: A novel bit-level image encryption algorithm based on chaotic maps. Opt. Lasers Eng. 78, 17–25 (2016)
Liu, X., Xiao, D., Liu, C.: Three-level quantum image encryption based on Arnold transform and logistic map. Quantum Inf. Process. 20(1), 1–22 (2021)
Mansouri A, Wang X. Image encryption using shuffled Arnold map and multiple values manipulations. The Visual Computer, 2020: 1–12
Xu J, Mou J, Liu J, Hao J. The image compression-encryption algorithm based on the compression sensing and fractional-order chaotic system. The Visual Computer, 2021: 1–18
Pak, C., An, K., Jang, P., Kim, J., Kim, S.: A novel bit-level color image encryption using improved 1D chaotic map. Multimed Tools Applicat 78(9), 12027–12042 (2019)
Raza, S.F., Satpute, V.: A novel bit permutation-based image encryption algorithm. Nonlinear Dyn. 95(2), 859–873 (2019)
Xu, M., Tian, Z.: A novel image cipher based on 3D bit matrix and latin cubes. Inf. Sci. 478, 1–14 (2019)
Zhou, N., Chen, W., Yan, X., et al.: Bit-level quantum color image encryption scheme with quantum cross-exchange operation and hyper-chaotic system. Quantum Inf. Process. 17(6), 1–24 (2018)
Li, S., Li, C., Chen, G., Zhang, D.: A general cryptanalysis of permutation-only multimedia encryption algorithms. IACR’s Cryptol ePrint Arch: Rep 2004, 374 (2004)
Wang, X.Y., Wang, Q., Zhang, Y.Q.: A fast image algorithm based on rows and columns switch. Nonlinear Dyn. 79(2), 1141–1149 (2015)
Li, Z., Peng, C.G., Li, L.R., Zhu, X.Y.: A novel plaintext-related image encryption scheme using hyper-chaotic system. Nonlinear Dyn. 94(2), 1319–1333 (2018)
Chen, J.X., Zhu, Z.L., Fu, C., Yu, H., Zhang, L.B.: An efficient image encryption scheme using Gray code based permutation approach. Opt. Lasers Eng. 67, 191–204 (2015)
Li, J.F., Xiang, S.Y., Wang, H.N., Gong, J.K., Wen, A.J.: A novel image encryption algorithm based on synchronized random bit generated in cascade-coupled chaotic semiconductor ring lasers. Opt. Lasers Eng. 102, 170–180 (2018)
Wu, X.J., Wang, K., Wang, X.Y., Kan, H.B., Kurths, J.: Color image DNA encryption using NCA map-based CML and one-time keys. Sign Procss. 148, 272–287 (2018)
Wu, X.J., Kurths, J., Kan, H.B.: A robust and lossless DNA encryption scheme for color images. Multimed Tools Applicat 77(10), 12349–12376 (2017)
Patro, K.A.K., Soni, A., Netam, P.K., Acharya, B.: Multiple grayscale image encryption using cross-coupled chaotic maps. J Inform Secur Applicat 52, 102470 (2020)
Liao, X., Hahsmi, M.A., Haider, R.: An efficient mixed inter-intra pixels substitution at 2bits-level for image encryption technique using DNA and chaos. Opt-Int J Light Elect Opt 153, 117–134 (2018)
Ye, G., Jiao, K., Huang, X., Goi, B.M., Yap, W.S.: An image encryption scheme based on public key cryptosystem and quantum logistic map. Sci. Rep. 10(1), 1–19 (2020)
Hanis, S., Amutha, R.: A fast double-keyed authenticated image encryption scheme using an improved chaotic map and a butterfly-like structure. Nonlinear Dyn. 95(1), 421–432 (2019)
Al-Hazaimeh O M, Al-Jamal M F, Alhindawi N, Alhindawi N&Omari A. Image encryption algorithm based on Lorenz chaotic map with dynamic secret keys. Neur Comput Applicat, 2019, 31(7): 2395–2405
Wang, X.Y., Gao, S.: Image encryption algorithm based on the matrix semi-tensor product with a compound secret key produced by a Boolean network. Inf. Sci. 539, 195–214 (2020)
Wang, X.Y., Yang, J.J.: A privacy image encryption algorithm based on piecewise coupled map lattice with multi dynamic coupling coefficient. Inf. Sci. 569, 217–240 (2021)
Xian, Y.J., Wang, X.Y.: Fractal sorting matrix and its application on chaotic image encryption. Inf. Sci. 547, 1154–1169 (2021)
Acknowledgements
This research is supported by the National Natural Science Foundation of China (No: 61672124), the Password Theory Project of the 13th Five-Year Plan National Cryptography Development Fund (No: MMJJ20170203), Liaoning Province Science and Technology Innovation Leading Talents Program Project (No: XLYC1802013), Key R&D Projects of Liaoning Province (No: 2019020105-JH2/103), Jinan City ‘20 universities’ Funding Projects Introducing Innovation Team Program (No: 2019GXRC031), Research Fund of Guangxi Key Lab of Multi-source Information Mining & Security (No: MIMS20-M-02).
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflicts of interest
The authors declare that they have no conflicts of interest.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Wang, X., Su, Y., Zhang, H. et al. A new hybrid image encryption algorithm based on Gray code transformation and snake-like diffusion. Vis Comput 38, 3831–3852 (2022). https://doi.org/10.1007/s00371-021-02224-0
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00371-021-02224-0