The present invention relates to 
a DNA dynamic coding based 
colored image 
encryption method, comprising: obtaining a key through a 
colored plain-text image; by the key, calculating an initial value and a parameter of a 
chaotic system used in scrambling and 
diffusion processes; substituting the initial value and the parameter to the 
chaotic system for iteration to obtain W1 and W2, obtaining a scrambling matrix K from W1, obtaining an 
integer matrix Y and an index matrix Ind from W2, and performing 
DNA coding on Y according to the index matrix Ind; and performing scrambling on the plain-text image row by row by using the matrix K, then performing coding and 
diffusion until all rows finish 
DNA coding, and finally performing decoding and recomposing on 
a DNA matrix, to obtain a final 
colored ciphertext image. According to the method, a function SHA256 is used to generate the key, so that the 
key space is expanded; the generation of the key depends on a plain-text, so that plain-text 
attack can be effectively resisted; 
chaotic characteristics are combined with 
DNA dynamic coding, so that the security is further improved; and meanwhile, scrambling and 
diffusion operations are performed according to the row of images, so that 
parallel computing is facilitated and the efficiency is improved.