A security ink comprising photochromic materials and one or more hydrophilic polymers, wherein said photochromic materials and the hydrophilic polymers form a homogeneous liquid phase, said ink solidifies or dries after application onto a surface, thereby immobilizing said photochromic materials onto a specific location where the ink is applied, wherein said photochromic materials are selected from the group consisting of all-trans retinal containing proteorhodopsins, retinal analog-containing proteorhodopsins, all-trans retinal containing bacteriorhodopsins, and retinal analog-containing bacteriorhodopsins, all of said proteorhodopsins and bacteriorhodopsins have different absorption spectra.