The embodiment of the invention discloses an image
encryption method and
system based on a fractional order pseudo-random
number generator and
DNA coding and decoding, and the method comprises the steps: determining the length of a key string required for
encryption based on a partitioned image, and generating a high-randomness key string according to the fractional order pseudo-random
number generator, the problems that a traditional integer order
chaotic system is insufficient in randomness and limited in secret
key space are solved, a CBC
chain type encryption mode is introduced to conduct inter-block encryption on each block of image after block division, generation of each
ciphertext block depends on a previous
ciphertext, inter-block relevance is established, the problem that the inter-block relevance is missing due to the independent encryption characteristic is solved, and the encryption efficiency is improved. According to the method, the image is encrypted, the differential
attack resistance of the image is enhanced, the
DNA coding and decoding rule is dynamically selected based on the key string, and the image block is encrypted on the basis, so that the defect that the static coding rule is easily subjected to exhaustive
attack is overcome, the real-time dynamic coding mechanism is realized, and the
attack resistance of image encryption is improved.