Microscale laser emissions have emerged as a promising approach for information encoding and anti-counterfeiting for their feature-rich spectra and high sensitivity to the surrounding environment. Compared with artificial materials, natural responsive biomaterials enable a higher level of complexity and versatile ways for tailoring optical responses. However, precise control of lasing wavelengths and spatial locations with biomolecules remains a huge challenge. Here, a biologically programmable laser, in which the lasing can be manipulated by biomolecular activities at the nanoscale, is developed. Tunable lasing wavelengths are achieved by exploiting the swelling properties of enzyme-responsive hydrogel droplets in a Fabry-Pérot microcavity. Both experimental and theoretical means demonstrate that inner 3D network structures and external curvature of the hydrogel droplets lead to different lasing thresholds and resonance wavelengths. Finally, inkjet-printed multiwavelength laser encoding and anti-counterfeiting are showcased under different scalabilities and environments. Hyperspectral laser images are utilized as an advanced feature for a higher level of security. The biologically encoded laser will provide a new insight into the development of biosynthetic and bioprogrammable laser devices, offering new opportunities for secure communication and smart sensing. Agency for Science, Technology and Research (A*STAR) Ministry of Education (MOE) This research was supported by A*STAR under its AME IRG Grant (Project No. A20E5c0085). This research was also supported by Ministry of Education, Singapore, under grant AcRF TIER 1-2021-T1-001-040 RG46/21.