Sometimes it is necessary to send the image data to the third party device to process. To ensure the image safety, it is necessary to encrypt the image before processing. A new algorithm for encrypted image processing is proposed. The image owner encrypts