Abstract:An algorithm was proposed in view of the combination of image compression and encryption. We got the approximate part and three detail parts after transforming the image with discrete wavelet transform (DWT), and compressed the image by modifying the detail parts by a given threshold value based on human visual systems. And then, we encrypted the image by scrambling the approximate part because this part held mostly of the energy. Last, a compressed and encrypted image can be achieved after DWT. Simulation result shows a good effect on the combination of compression and encryption.