A lightweight encryption technique for JPEG2000 with optional support for transparent encryption is proposed. Randomized anisotropic wavelet packet bases are used to construct a secret frequency domain, leading to a situation in which only a minimal amount of data needs to be encrypted. Results and calculations are presented to evaluate the suggested approach in terms of compression performance, security, and applicability.