• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2022, Vol. 44 ›› Issue (09): 1583-1593.

• Computer Network and Znformation Security • Previous Articles     Next Articles

A rectangular image scrambling method based on the square theorem and magic square

LI Xiang-jun1,2,YU Peng2,LIU Bo-cheng1,YUAN Ling-li1   

  1. (1.School of Software,Nanchang University,Nanchang 330046;
    2.School of Mathematics and Computer Sciences,Nanchang University,Nanchang 330031,China)
  • Received:2020-10-10 Revised:2021-03-02 Accepted:2022-09-25 Online:2022-09-25 Published:2022-09-25

Abstract: Aiming at the problem that the magic square scrambling algorithm has insufficient variable-scale scrambling ability, poor scrambling effect and low security, based on the four-square theorem and the magic square scrambling method, a four-block magic square scrambling algorithm (FMSS) is proposed. Firstly, according to the four-block rule of the Four Square Theorem, the plain image is divided into four square image blocks. Secondly, the magic square matrix required for scrambling is generated. Thirdly, each image block is scrambled. Stitching, transpose, shape change and other operations are used to makes all pixels fully diffused and restored to the size of the plaintext image. Finally, the ciphertext image is obtained through multiple scrambling methods. Experimental results show that the algorithm can effectively enhance the image scrambling effect and can scramble and restore the rectangular image. It effectively reduces the image pixel correlation and has better security. The algorithm satisfies the requirements of the image scrambling algorithm in terms of robustness, scrambling and recovery speed.

Key words: rectangular image, Four Square Theorem, image block, four-block magic square scrambl-ing

CLC Number: