JPEG Privacy: Selective Encryption and Redaction

This article provides an overview of how the ISO/IEC 19566-4 standard, known as JPEG Privacy and Security, defines selective encryption and redaction for digital images. It explains the framework used to protect specific regions of interest (ROIs) and sensitive metadata within an image while preserving backward compatibility with legacy decoders. Readers will learn the mechanics behind partial visual encryption, irreversible masking, and reversible redaction techniques established by the standard.

The JPEG Privacy and Security Framework

Standardized under ISO/IEC 19566-4 (JPEG Systems Part 4), the JPEG Privacy and Security specification defines how to secure, authenticate, and manage access to entire images, designated spatial segments, and associated metadata. The foundation of this standard relies on the JPEG Universal Metadata Box Format (JUMBF). JUMBF enables structured, modular encapsulation of protected data within standard JPEG marker segments, ensuring that legacy viewers can still parse and display the unprotected portions of the file without crashing.

Selective Encryption

Selective encryption allows content owners to encrypt specific visual portions—such as faces, license plates, or medical anomalies—or specific metadata elements, rather than encrypting the entire file.

The standard achieves selective encryption through the following steps:

Redaction: Irreversible and Reversible

The standard addresses redaction as the process of masking, removing, or obscuring visual segments and metadata to safeguard privacy. It distinguishes between two primary forms:

1. Irreversible Redaction

Irreversible redaction completely strips sensitive data from the file. The original pixels within the specified spatial segment are replaced with static visual placeholders—such as a solid black box, pixelation, or a blur effect—directly inside the primary codestream. Concurrently, all metadata related to that region (such as GPS coordinates or device identifiers) is permanently expunged. Because the underlying encrypted original data is omitted from the file structure entirely, the redacted content cannot be recovered by any party.

2. Reversible Redaction

Reversible redaction blends privacy protection with data recovery capabilities for authorized users. In this method:

Integrity and Authentication

To prevent unauthorized modification or falsified redaction, the specification includes integrity verification mechanisms. Digital signatures and cryptographic hashes can be tied to both the unprotected base image and the protected compartments. This guarantees that recipients can verify whether the selective encryption or redaction was applied by a trusted authority and ensure that neither the public nor protected portions of the image have been tampered with.