A new method of coding of genetic information using laser speckles has been developed. Specific technique of transforming the nucleotide of gene into a speckle pattern (gene-based speckles or GB-speckles) is suggested. Reference speckle patterns of omp1 gene of typical wild strains of Chlamydia trachomatis of genovars D, E, F, G, and J are generated. This is the first report in which perspectives of the proposed technique in the bacterial gene identification and detection of natural genetic mutations in bacteria as a single nucleotide polymorphism (SNP) are demonstrated. The usage of GB-speckles can be viewed as the next step on the way to the era of digital biology.