The invention discloses a
color image encryption algorithm based on a four-dimensional
memristor chaotic system, and relates to the technical field of image
encryption, and the
algorithm comprises the steps: collecting an original
color image, obtaining an image matrix through image
digitization, dividing the image matrix and a Sudoku matrix into image sub-blocks and Sudoku sub-blocks which are unified in specification, and carrying out image
encryption on the image sub-blocks and the Sudoku sub-blocks; constructing a four-dimensional
memristor chaotic system to generate a pseudo-
random matrix, obtaining a
diffusion matrix through forward
diffusion in bidirectional
diffusion, extracting a pixel value through a Sudoku perturbation
algorithm, calculating a perturbation round, carrying out iterative perturbation on image sub-blocks, integrating residual parts to obtain a scrambling matrix, and decomposing pixels of the scrambling matrix into binary systems to obtain a scrambling matrix; according to the image encryption method, the row index is rearranged, the binary bit is rearranged and the binary bit is reconstructed into a decimal pixel in combination with a
Latin square matrix diffusion algorithm, a reconstructed
pixel matrix is obtained, finally, backward diffusion in bidirectional diffusion in S2 is adopted for post-integration, an encrypted image matrix is obtained, an encrypted
color image is output, and the security, the anti-
attack capability and the practicability of image encryption are improved.