摘要:Background: In current years, numerous algorithms of image encryption were considered and developed through diffusion and confusion, to secure the image against hackers. Materials and Methods: In this study a novel idea is proposed to encrypt and decrypt an image. Here two levels of encryption are used. In the first level the plane encryption is done, due to this there will be an absolute changes in the bits of each plane and in the second level the pixel encryption is done because of this the pixel values are changed. All these things makes harder to decrypt the image by the hackers in the channel. Results: The number of pixel change rate (NPCR) and Unified Average Changing Intensity (UACI) values are calculated to test the randomness of the encrypted images. Horizontal, vertical and diagonal correlations are tested to find the relationship between two adjacent pixels. To compare the pixel distribution of original and encrypted image histograms are plotted. Conclusion: The statistical analysis of data obtained from the results based on the proposed technique can offer a greater quality of information transmission security.