The invention provides a selective
satellite image compression encryption method based on Chacha20 and CCSDS. Aiming the characteristics of a
satellite image, the method comprises the steps: firstly carrying out the three-stage two-dimensional discrete
wavelet transformation through employing a 9 / 7 integral
wavelet in a CCSDS
image compression algorithm, and obtaining a DC coefficient and an
AC coefficient after transformation; secondly generating a ChaCha20 initial
byte stream through the head information in a coding item and a 512-bit initial secret key and ChaCha20 Hash; thirdly carrying out the summation and modular operation of a chaos initial secret key and a
plaintext image normalization value through the
byte stream generated by PWLCM (Piecewise Linear
Chaotic Map) and the ChaCha20 initial
byte stream, and generating a ChaCha20 byte stream; fourthly carrying out the XOR
encryption of the ChaCha20 byte stream and the DC coefficient and
AC coefficient (the father and son coefficients in each block) and all
AC coefficient symbol bites; finally enabling the encrypted DC and AC coefficients to be coded and compressed, and completing the compression and
encryption of the
satellite image. The generation of the ChaCha20 byte stream is related with the to-be-encrypted
satellite image and a compression coding parameter, thereby improving the encryption adaptability.