The invention discloses an image
encryption method based on three-dimensional
chaotic mapping and Josephh replacement, which comprises the following steps of: taking an image as input of a
hash function to obtain a hash value, updating a secret key by using the hash value, inputting the secret key into a three-dimensional
chaotic system for iteration to obtain
chaotic sequences X, Y and Z, and performing rotation operation on the image according to the value of the chaotic sequence X, then
wavelet transformation is carried out on each image block, and multiple Josephh permutation of dynamic step length is carried out on the matrix after multi-scale
decomposition according to the value of the chaos sequence Y; dynamically generating a mean value and a variance of
Gaussian noise by using the value of the chaos sequence Z, and generating the
Gaussian noise; and performing dynamic cross
diffusion on the image block, controlling the
diffusion direction and intensity through the chaos sequence Z, and adding the generated
Gaussian noise into the image block. According to the method, the
encryption process is more efficient and has better security, the anti-
attack capability is improved, the visual security is better, privacy and integrity are protected, and the practical value is feasible.