Skip to main content
Log in

A novel gray scale image encryption scheme based on pixels’ swapping operations

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Design principles for image encryption schemes abound in the literature. Among these schemes, few were built upon the philosophy of swapping of the pixels in the given input image. Swapping is a very straightforward and a naïve approach for image scrambling. We believe that fuller potential of swapping has not been realized yet. In this work, a novel image encryption scheme is being presented through the swapping of pixel values of the given gray scale input image. The 5D multi-wing hyperchaotic system rendering five key streams of random numbers have been used in the proposed cipher. After the gray scale image is input, its pixels are swapped randomly. The random numbers given through the first two key streams jointly determine the address of the first pixel to be swapped with the second pixel whose address is determined by the random numbers given through the third and fourth key streams. In this way, the pixels of the given image are swapped abundantly. The selection of both the pixels for swapping is purely arbitrary and random in character having no restriction of linearity and sequentiality as was done by other schemes previously. To create the diffusion effects, an XOR operation is carried out between this scrambled image and the key image formed through the fifth stream of random numbers given by the chaotic system. SHA-384 hash codes have been used in the proposed scheme to embed the plaintext sensitivity. The simulation and the extensive security analyses carried out at the end expressly portray the good security effects and the potential for the real world application of the reported scheme.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11

Similar content being viewed by others

References

  1. Babaei M (2013) A novel text and image encryption method based on chaos theory and DNA computing. Nat Comput 12(1):101–107

    MathSciNet  MATH  Google Scholar 

  2. Bashir Z, Rashid T, Zafar S (2016) Hyperchaotic dynamical system based image encryption scheme with time-varying delays. Pacific Science Review A: Natural Science and Engineering 18(3):254–260

    Google Scholar 

  3. Boriga R, Dăscălescu AC, Priescu I (2014) A new hyperchaotic map and its application in an image encryption scheme. Signal Process Image Commun 29(8):887–901

    Google Scholar 

  4. Chai X, Fu X, Gan Z, Lu Y, Chen Y (2019) A color image cryptosystem based on dynamic DNA encryption and chaos. Signal Process 155:44–62

    Google Scholar 

  5. Chai X, Gan Z, Zhang M (2017) A fast chaos-based image encryption scheme with a novel plain image-related swapping block permutation and block diffusion. Multimedia Tools and Applications 76(14):15561–15585

    Google Scholar 

  6. Chen L, Ma B, Zhao X, Wang S (2017) Differential cryptanalysis of a novel image encryption algorithm based on chaos and Line map. Nonlinear Dynamics 87(3):1797–1807

    MATH  Google Scholar 

  7. Chen G, Mao Y, Chui CKA (2004) Symmetric image encryption scheme based on 3D chaotic cat maps. Chaos. Solitons & Fractals 21(3):749–761

    MathSciNet  MATH  Google Scholar 

  8. Chen JX, Zhu ZL, Fu C, Yu H (2013) An improved permutation-diffusion type image cipher with a chaotic orbit perturbing mechanism. Opt Express 21(23):27873–27890

    Google Scholar 

  9. Chen JX, Zhu ZL, Fu C, Yu H (2014) A fast image encryption scheme with a novel pixel swapping-based confusion approach. Nonlinear Dynamics 77 (4):1191–1207

    Google Scholar 

  10. Enayatifar R, Abdullah AH, Isnin IF (2014) Chaos-based image encryption using a hybrid genetic algorithm and a DNA sequence. Opt Lasers Eng 56:83–93

    Google Scholar 

  11. Floating-Point Working Group (1985) IEEE Computer society: IEEE standard for binary floating-point arithmetic, Standard, pp 754–1985

  12. Fu C, Zhao GY, Gao M, Ma HF (2013) A chaotic symmetric image cipher using a pixel-swapping based permutation. In: 2013 IEEE international conference of IEEE Region 10 (TENCON 2013), IEEE, pp 1–6

  13. Hanif M, Naqvi RA, Abbas S, Khan MA, Iqbal N (2020) A novel and efficient 3D multiple images encryption scheme based on chaotic systems and swapping operations. IEEE Access 8:123536–123555

    Google Scholar 

  14. Hoang TM, Thanh HX (2018) Cryptanalysis and security improvement for a symmetric color image encryption algorithm. Optik 155:366–383

    Google Scholar 

  15. Jain A, Rajpal N (2016) A robust image encryption algorithm resistant to attacks using DNA and chaotic logistic maps. Multimedia Tools and Applications 75(10):5455–5472

    Google Scholar 

  16. Kulsoom A, Xiao D, Abbas SA (2016) An efficient and noise resistive selective image encryption scheme for gray images based on chaotic maps and DNA complementary rules. Multimedia Tools and Applications 75(1):1–23

    Google Scholar 

  17. Li S, Chen G, Mou X (2005) On the dynamical degradation of digital piecewise linear chaotic maps. International Journal of Bifurcation and Chaos 15 (10):3119–3151

    MathSciNet  MATH  Google Scholar 

  18. Li S, Li C, Chen G, Zhang D, Bourbakis NG (2004) A general cryptanalysis of permutation-only multimedia encryption algorithms. IACR’s Cryptology ePrint Archive: Report 374:2004

    Google Scholar 

  19. Li C, Lo KT (2011) Optimal quantitative cryptanalysis of permutation-only multimedia ciphers against plaintext attacks. Signal process 91(4):949–954

    MATH  Google Scholar 

  20. Li Y, Wang C, Chen H (2017) A hyper-chaos-based image encryption algorithm using pixel-level permutation and bit-level permutation. Opt Lasers Eng 90:238–246

    Google Scholar 

  21. Liao X, Hahsmi MA, Haider R (2018) An efficient mixed inter-intra pixels substitution at 2bits-level for image encryption technique using DNA and chaos. Optik-International Journal for Light and Electron Optics 153:117–134

    Google Scholar 

  22. Liao X, Kulsoom A, Ullah S (2016) A modified (Dual) fusion technique for image encryption using SHA-256 hash and multiple chaotic maps. Multimedia Tools and Applications 75(18):11241–11266

    Google Scholar 

  23. Liu H, Wang X (2011) Color image encryption using spatial bit-level permutation and high-dimension chaotic system. Opt Commun 284(16-17):3895–3903

    Google Scholar 

  24. Liu H, Wang X, Kadir A (2013) Color image encryption using Choquet fuzzy integral and hyper chaotic system. Optik-International Journal for Light and Electron Optics 124(18):3527–3533

    Google Scholar 

  25. Mirzaei O, Yaghoobi M, Irani H (2012) A new image encryption method: parallel sub-image encryption with hyper chaos. Nonlinear Dynamics 67 (1):557–566

    MathSciNet  Google Scholar 

  26. Niyat AY, Moattar MH, Torshiz MN (2017) Color image encryption based on hybrid hyper-chaotic system and cellular automata. Opt Lasers Eng 90:225–237

    Google Scholar 

  27. Norouzi B, Mirzakuchaki S (2014) A fast color image encryption algorithm based on hyper-chaotic systems. Nonlinear Dynamics 78(2):995–1015

    Google Scholar 

  28. Özkaynak F, Özer AB (2016) Cryptanalysis of a new image encryption algorithm based on chaos. Optik 127(13):5190–5192

    Google Scholar 

  29. Öztürk İ, Kiliç R (2014) Cycle lengths and correlation properties of finite precision chaotic maps. International Journal of Bifurcation and Chaos 24 (09):1450107

    MathSciNet  MATH  Google Scholar 

  30. Parvees MM, Samath JA, Bose BP (2016) Secured medical images-a chaotic pixel scrambling approach. J Med Syst 40(11):232

    Google Scholar 

  31. Parvin Z, Seyedarabi H, Shamsi M (2016) A new secure and sensitive image encryption scheme based on new substitution with chaotic function. Multimedia Tools and Applications 75(17):10631– 10648

    Google Scholar 

  32. Shannon CE (1949) Communication theory of secrecy systems. Bell System Technical Journal 28(4):656–715

    MathSciNet  MATH  Google Scholar 

  33. Song CY, Qiao YL, Zhang XZ (2013) An image encryption scheme based on new spatiotemporal chaos. Optik-International Journal for Light and Electron Optics 124(18):3329–3334

    Google Scholar 

  34. Sun S, Guo Y, Wu R (2019) A novel image encryption scheme based on 7D hyperchaotic system and row-column simultaneous swapping. IEEE Access 7:28539–28547

    Google Scholar 

  35. Taneja N, Raman B, Gupta I (2012) Combinational domain encryption for still visual data. Multimedia Tools and Applications 59(3):775–793

    Google Scholar 

  36. Wei X, Guo L, Zhang Q, Zhang J, Lian S (2012) A novel color image encryption algorithm based on DNA sequence operation and hyper-chaotic system. J Syst Softw 85(2):290–299

    Google Scholar 

  37. Wong KW, Kwok BSH, Yuen CH (2009) An efficient diffusion approach for chaos-based image encryption. Chaos Solitons & Fractals 41(5):2652–2663

    MATH  Google Scholar 

  38. Wu J, Liao X, Yang B (2018) Cryptanalysis and enhancements of image encryption based on three-dimensional bit matrix permutation. Signal Process 142:292–300

    Google Scholar 

  39. Xiong Z, Wu Y, Ye C, Zhang X, Xu F (2019) Color image chaos encryption algorithm combining CRC and nine palace map. Multimedia Tools and Applications 78(22):31035–31055

    Google Scholar 

  40. Xiong Z, Wu Y, Ye C, Zhang X, Xu F (2019) Color image chaos encryption algorithm combining CRC and nine palace map. Multimedia Tools and Applications, pp 1–21

  41. Xu L, Li Z, Li J, Hua W (2016) A novel bit-level image encryption algorithm based on chaotic maps. Opt Lasers Eng 78:17–25

    Google Scholar 

  42. Ye R, Xi Y, Ma Y (2016) A chaotic image encryption scheme using swapping based confusion approach. In: 2016 First IEEE international conference on computer communication and the internet (ICCCI), IEEE, pp 374-377

  43. Zhang Q, Liu L, Wei X (2014) Improved algorithm for image encryption based on DNA encoding and multi-chaotic maps. AEU-International Journal of Electronics and Communications 68(3):186–192

    Google Scholar 

  44. Zhang YQ, Wang XY (2014) A symmetric image encryption algorithm based on mixed linear–nonlinear coupled map lattice. Inf Sci 273:329–351

    Google Scholar 

  45. Zhang W, Wong KW, Yu H, Zhu ZL (2013) A symmetric color image encryption algorithm using the intrinsic features of bit distributions. Commun Nonlinear Sci Numer Simul 18(3):584–600

    MathSciNet  MATH  Google Scholar 

  46. Zhang W, Yu H, Zhao YL, Zhu ZL (2016) Image encryption based on three-dimensional bit matrix permutation. Signal Process 118:36–50

    Google Scholar 

  47. Zhen P, Zhao G, Min L, Jin X (2016) Chaos-based image encryption scheme combining DNA coding and entropy. Multimedia Tools and Applications 75(11):6303–6319

    Google Scholar 

  48. Zhou G, Zhang D, Liu Y, Yuan Y, Liu Q (2015) A novel image encryption algorithm based on chaos and Line map. Neurocomputing 169:150–157

    Google Scholar 

  49. Zhu C (2012) A novel image encryption scheme based on improved hyperchaotic sequences. Opt Commun 285(1):29–37

    Google Scholar 

  50. Zhu ZL, Zhang W, Wong KW, Yu H (2011) A chaos-based symmetric image encryption scheme using a bit-level permutation. Inf Sci 181(6):1171–1186

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Nadeem Iqbal.

Ethics declarations

Conflict of interests

The authors declare that they have no conflict 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

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Bashir, Z., Iqbal, N. & Hanif, M. A novel gray scale image encryption scheme based on pixels’ swapping operations. Multimed Tools Appl 80, 1029–1054 (2021). https://doi.org/10.1007/s11042-020-09695-8

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-020-09695-8

Keywords

Navigation