Securing the architecture of the JPEG compression by an dynamic encryption