Image Encryption Algorithm of Double Scrambling Based on ASCII Code of Matrix Element

A new image encryption algorithm of double scrambling based on ASCII code of image matrix element is proposed in this paper. The new algorithm implements position scrambling and gray scrambling at the same time, and overcomes the shortcoming of traditional algorithm that single algorithm can only deal with position scrambling but not gray scrambling simultaneously. Finally, tests show that the new image encryption algorithm presented has better scrambling effect and can effectively ensure the security of protected image than traditional algorithm.