Af den grund kan DNA bruges til at indkode meddelelser:
Hvis det blot handler om at indkode tekst, er én måde at omdanne hvert bogstav i alfabetet til bogstavskode med tre elementer. Ved at bruge tre baser som A, C og T fås 27 kombinationer - nok til det engelske alfabet plus et mellemrum - med en kode som for eksempel AAA=A, AAC=B, og så videre (1 i billedet nedenfor). Imidlertid ønsker forskere ofte at kode mere end blot tekst, så de fleste gængse metoder bruger i stedet at oversætte data til binære koder - sproget med énere og nuller, som bruges i elektronisk medier. Bruger man binær kode, kan de fire base i DNA teoretisk lagre up til to bits information for hvert nukleotid med en kode som for eksempel A=00, C=01 og så videre. - CATHERINE OFFORD, "INFOGRAPHIC: WRITING WITH DNA" AT THE SCIENTISTI 2017 kodede en gruppe fra Harvard en video, et billede fra én af de ældste overlevende film med bevæglese, i en DNA prøve fra en bakterie:
Kommentar: Delvist oversat af Sott.net fra Can DNA be hacked? Yep!
In August 2017, researchers announced that they had used DNA to encode malware to hack a computer program that reads genetic sequences:
In new research they plan to present at the USENIX Security conference on Thursday, a group of researchers from the University of Washington has shown for the first time that it's possible to encode malicious software into physical strands of DNA, so that when a gene sequencer analyzes it the resulting data becomes a program that corrupts gene-sequencing software and takes control of the underlying computer. While that attack is far from practical for any real spy or criminal, it's one the researchers argue could become more likely over time, as DNA sequencing becomes more commonplace, powerful, and performed by third-party services on sensitive computer systems. --ANDY GREENBERG, "BIOHACKERS ENCODED MALWARE IN A STRAND OF DNA" AT WIREDThe researcher/hackers merely wanted to demonstrate the possibility, in an age when DNA is becoming popular culture:
Between startups like 23andMe, makers of an at-home saliva-based DNA kit that promises to help users learn more about their health and family history, and Embark Veterinary, which helps pet owners and breeders learn about ancestry and disease risk of dogs through saliva swabs, DNA testing is having a bit of a moment. "Security Researchers Inject DNA with Malware - But Don't Panic Yet" at Data Center KnowledgeWhat the researchers did was to write a piece of attack software that, 37% of the time, survived translation from physical DNA to FASTQ, a digital storage format for DNA sequences and then could get into the computer's memory and start running whatever it was coded to do.
Now, they did make things easier for themselves in that they deliberately inserted a flaw in the open source code of the compression program, fqzcomp, to be sure they had something to attack. However, they weren't exactly cheating because they surveyed commonly used DNA sequencing software and found three genuine vulnerabilities.
So yes, it's still science fiction - for now. Like all languages, the language that forms us can be misused and we must anticipate the challenge.
 Here's the Significance statement of the 2019 paper:
Genomes appear similar to natural language texts, and protein domains can be treated as analogs of words. To investigate the linguistic properties of genomes further, we calculated the complexity of the "protein languages" in all major branches of life and identified a nearly universal value of information gain associated with the transition from a random domain arrangement to the current protein domain architecture. An exploration of the evolutionary relationship of the protein languages identified the domain combinations that discriminate between the major branches of cellular life. We conclude that there exists a "quasi-universal grammar" of protein domains and that the nearly constant information gain we identified corresponds to the minimal complexity required to maintain a functional cell. --LIJIA YU, DEEPAK KUMAR TANWAR, EMANUEL DIEGO S. PENHA, YURI I. WOLF, EUGENE V. KOONIN, AND MALAY KUMAR BASU, ""GRAMMAR OF PROTEIN DOMAIN ARCHITECTURES"" AT PNASSee also: How a computer programmer looks at DNA And finds it to be "amazing" code