The invention provides an Internet of Vehicles image
encryption method based on four-dimensional
memristor hyper-chaos, which comprises the following steps: calculating a hash value of a
plaintext image, and calculating an initial value of a four-dimensional hyper-chaos
system; substituting into a four-dimensional hyper-
chaotic system for iteration, and quantifying to obtain four groups of
chaotic sequences; dividing a
plaintext image into a
processing area, dividing the
processing area into 36 sub-blocks, mapping the 36 sub-blocks into a
pyramid magic cube, and scrambling by using a first group of
chaotic sequences; dividing each sub-block into 36 micro-blocks again to construct a
pyramid magic cube, performing scrambling by using a first group of chaotic sequences, dividing a generated middle area image into 9 sub-blocks, extracting 4 pixels from each sub-block to reconstruct the
pyramid magic cube, and performing scrambling by using the first group of chaotic sequences; converting the scrambled image into a binary matrix, and dividing the binary matrix into four bit planes for
nonlinear diffusion; and converting the diffused image matrix into a one-dimensional sequence for
ciphertext feedback, and generating a
ciphertext image. According to the method, high
encryption efficiency is ensured, and meanwhile, the anti-
attack capability is remarkably enhanced.