Skip to main content
Log in

Enhanced image encryption using AES algorithm with CBC mode: a secure and efficient approach

  • Research
  • Published:
Iran Journal of Computer Science Aims and scope Submit manuscript

Abstract

In recent times, the necessity for secure communication and data transfer has witnessed a significant surge owing to the widespread usage of digital devices and the internet. Encryption is one of the most commonly employed techniques for securing data, which involves transforming plain data into a scrambled form that can only be deciphered with the correct decryption key. This paper presents a method for encrypting digital images using symmetric key cryptography. The proposed method employs the Advanced Encryption Standard (AES) block cipher in Cipher block chaining (CBC) mode to encrypt the image data, along with a random Initialization Vector (IV) and Key. Furthermore, the image data is padded using the PKCS7 padding scheme to ensure that the block cipher operates on blocks of fixed size. The proposed encryption method is implemented in Python using the cryptography library and tested on sample images. The experimental outcomes show that the suggested approach offers secure and effective encryption of digital images, with negligible overheads in terms of time and space complexity. The proposed method can be utilized in various applications that require secure image transfer and storage, such as e-commerce, medical imaging, and confidential document exchange.

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

Similar content being viewed by others

Data availability

The datasets generated during and/or analysed during the current study are available from the corresponding author on reasonable request.

References

  1. Kumari, P., Mondal, B.: Lightweight image encryption algorithm using nlfsr and cbc mode. J. Supercomput. 79, 1–21 (2023). https://doi.org/10.1007/s11227-023-05415-9

    Article  Google Scholar 

  2. Vaidehi, M., Rabi, B.J.: Design and analysis of aes-cbc mode for high security applications. Second Int. Conf. Curr. Trends Eng. Technol. ICCTET 2014, 499–502 (2014). https://doi.org/10.1109/ICCTET.2014.6966347

    Article  Google Scholar 

  3. Fathy, A., Tarrad, I.F., Hamed, H.F.A., Awad, A.I.: Advanced encryption standard algorithm: Issues and implementation aspects. In: Hassanien, A.E., Salem, A.-B.M., Ramadan, R., Kim, T.-H. (eds.) Adv. Mach. Learn. Technol. Appl., pp. 516–523. Springer, Berlin, Heidelberg (2012)

  4. Bellare, M., Kilian, J., Rogaway, P.: The security of the cipher block chaining message authentication code. J. Comput. Syst. Sci. 61(3), 362–399 (2000). https://doi.org/10.1006/jcss.1999.1694

    Article  MathSciNet  Google Scholar 

  5. Heron, S.: Advanced encryption standard (aes). Netw. Secur. 2009(12), 8–12 (2009). https://doi.org/10.1016/S1353-4858(10)70006-4

    Article  Google Scholar 

  6. Ametepe, A., Ahouandjinou, A., Ezin, E.: Robust encryption method based on aes-cbc using elliptic curves diffie-hellman to secure data in wireless sensor networks. Wirel. Netw. 28, 1–11 (2022). https://doi.org/10.1007/s11276-022-02903-3

    Article  Google Scholar 

  7. Lin, C.-H., Hu, G.-H., Chan, C.-Y., Yan, J.-J.: Chaos-based synchronized dynamic keys and their application to image encryption with an improved aes algorithm. Appl. Sci. 11, 1329 (2021). https://doi.org/10.3390/app11031329

    Article  Google Scholar 

  8. Artiles, J.A.P., Chaves, D.P.B., Pimentel, C.: Image encryption using block cipher and chaotic sequences. Signal Process. Image Commun. 79, 24–31 (2019). https://doi.org/10.1016/j.image.2019.08.014

    Article  Google Scholar 

  9. Frankel, S., Glenn, R., Kelly, S.: Rfc3602: The aes-cbc cipher algorithm and its use with ipsec (2003). https://doi.org/10.17487/RFC3602

  10. Dey, D., Suresha, P., Mitra, A.: Cbc mode based image encryption technique using arnold transformation 8, 578–591 (2021). https://doi.org/10.6084/m9.doi.one.IJRAR21D1807

  11. Abdullah, A.: Advanced encryption standard (aes) algorithm to encrypt and decrypt data (2017)

  12. Assafli, H.T., Hashim, I.A.: Security enhancement of aes-cbc and its performance evaluation using the avalanche effect. In: 2020 3rd International Conference on Engineering Technology and its Applications (IICETA), 7–11 (2020)

  13. García, D.F.: Performance evaluation of advanced encryption standard algorithm. In: 2015 Second International Conference on Mathematics and Computers in Sciences and in Industry (MCSI), pp. 247–252 (2015). https://doi.org/10.1109/MCSI.2015.61

  14. Boussif, M.: On the security of advanced encryption standard (aes), pp. 83–88 (2022). https://doi.org/10.1109/ICEAST55249.2022.9826324

  15. Hafsa, A., Sghaier, A., Malek, J., Machhout, M.: Image encryption method based on improved ecc and modified aes algorithm. Multimedia Tools Appl. 80, 1–33 (2021). https://doi.org/10.1007/s11042-021-10700-x

    Article  Google Scholar 

  16. Mandal, P.C.: Evaluation of performance of the symmetric key algorithms: Des, 3des, aes and blowfish. J. Global Res. Comput. Sci. 3, 67–70 (2012)

  17. Xiao, Y., Sun, B., Chen, H.-H., Guizani, S., Wang, R.: Nis05-1: Performance analysis of advanced encryption standard (aes). In: IEEE Globecom 2006, pp. 1–5 (2006). https://doi.org/10.1109/GLOCOM.2006.285

  18. D’souza, F., Panchal, D.M.: Advanced encryption standard (aes) security enhancement using hybrid approach. 2017 International Conference on Computing, Communication and Automation (ICCCA), pp. 647–652 (2017)

  19. Musliyana, Z., Arif, T.Y., Munadi, R.: Security enhancement of advanced encryption standard (aes) using time-based dynamic key generation (2015). https://api.semanticscholar.org/CorpusID:32632784

  20. Zhang, Y.: Test and verification of aes used for image encryption. 3D Res. 9, 1–27 (2018)

  21. Munir, R.: Security analysis of selective image encryption algorithm based on chaos and cbc-like mode. In: 2012 7th International Conference on Telecommunication Systems, Services, and Applications (TSSA), pp. 142–146 (2012). https://doi.org/10.1109/TSSA.2012.6366039

  22. Shadangi, V., Choudhary, S., Abhimanyu, K., Patro, K.A., Acharya, B.: Novel arnold scrambling based cbc-aes image encryption novel arnold scrambling based cbc-aes image encryption. Int. J. Control Theory Appl. 10, 93–105 (2017)

    Google Scholar 

  23. Zeghid, M., Machhout, M., Khriji, L., Baganne, A., Tourki, R.: A modified aes based algorithm for image encryption. World Acad. Sci. Eng. Technol. 1, 745–750 (2007)

    Google Scholar 

  24. Zhang, Y., Li, X., Hou, W.: A fast image encryption scheme based on aes, pp. 624–628 (2017). https://doi.org/10.1109/ICIVC.2017.7984631

  25. Wadi, S., Zainal, N.: High definition image encryption algorithm based on aes modification. Wirel. Pers. Commun. 79, 811–829 (2014). https://doi.org/10.1007/s11277-014-1888-7

    Article  Google Scholar 

Download references

Funding

This research work has not been supported by any of the funding agencies.

Author information

Authors and Affiliations

Authors

Contributions

All authors contributed equally to this manuscript and research work.

Corresponding author

Correspondence to Ramchandra Mangrulkar.

Ethics declarations

Conflict of interest

The authors declare 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

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Haria, K., Shah, R., Jain, V. et al. Enhanced image encryption using AES algorithm with CBC mode: a secure and efficient approach. Iran J Comput Sci (2024). https://doi.org/10.1007/s42044-024-00191-y

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s42044-024-00191-y

Keywords

Navigation