In the rapidly evolving landscape of cybersecurity, safeguarding sensitive information and ensuring the integrity of digital systems have become paramount. Physical unclonable functions (PUFs) have emerged as a cutting-edge technology in the realm of hardware-based security, especially in combating the scourge of counterfeit medicines.1,2 A PUF refers to a physical object with inherent and unique features that can be generated with a stochastic and nondeterministic process and therefore is impervious to replication and also resistant to physical attack.3,4 In the realm of commercially available electronic PUFs (e.g., arbiter PUFs and static random-access memory PUFs), the inherent physical variations in semiconductor devices generate unique and unpredictable identifiers.4 However, due to their deterministic fabrication mode and encoding mechanism, these electronic PUFs might be susceptible to modeling attacks, notably from machine-learning fronts.2 Countermeasures, fostering randomness and unpredictability, are essential to thwart such attacks.5,6 Optical PUFs, fueled by the inherent randomness in optics and optical materials, have been receiving increasing research interest. Such an emerging technology holds promise for addressing issues in current electronic PUFs, such as vulnerability to attack, limits in entropy sources, aging, and degradation.4 The first demonstration of optical PUFs reported in 20027 employed laser speckle patterns generated by random scattering from an inhomogeneous optical medium. Over the past two decades, integrable optical materials and structures involving stochastic processes or significant structural disorders,8,9 such as plasmonic nanostructures,10 – 16 Mie resonators,17 – 19 colloidal photonic crystals,20 – 22 molecular self-assemblies,23 and bionic structures,24 have been exploited as compact optical PUFs. Despite their promise, expanding the PUF capacity with ample challenge–response pairs (CRPs) demands dedicated spatial9,25 or spectral encoding strategies26 of the excitation light field to generate highly flexible graphical information. The required bulky and complex equipment (e.g., a spatial light modulator) often impedes their applications.