This paper presents a new chaotic algorithm to the encryption and decryption for the replacement of pixel position. Through the research on chaos theory and chaotic sequence, by using matlab tools to process the chaos algorithm of encryption and relevant experiments and analysis on key sensitivity and pixel, we find that this algorithm is more prominent and more securable. Also, this can be seen from the screenshot contrasts among the decrypted picture, original picture, and encrypted pi...