From 7f631c493d04ba96e36975365532e2172fec367e Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 7 Oct 2021 21:13:14 +0200 Subject: Added dithered images --- posts/2019-01-03-encoding-binary-data-into-dna-sequence.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'posts/2019-01-03-encoding-binary-data-into-dna-sequence.md') diff --git a/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md b/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md index b743017..ea2bec8 100644 --- a/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md +++ b/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md @@ -83,7 +83,7 @@ Deoxyribonucleic acid, a self-replicating material which is **present in nearly The nucleotide in DNA consists of a sugar (deoxyribose), one of four bases (cytosine (C), thymine (T), adenine (A), guanine (G)), and a phosphate. Cytosine and thymine are pyrimidine bases, while adenine and guanine are purine bases. The sugar and the base together are called a nucleoside. -![DNA](/assets/dna-sequence/dna-basics.jpg#center) +![DNA](/assets/dna-sequence/dna-basics.jpg.dith.gif) *DNA (a) forms a double stranded helix, and (b) adenine pairs with thymine and cytosine pairs with guanine. (credit a: modification of work by Jerome Walker, Dennis Myts)* @@ -248,7 +248,7 @@ Then we encode FASTA file from previous operation to encode this data into PNG. After encoding into PNG format this file looks like this. -![Encoded Quote in PNG format](/assets/dna-sequence/quote.png) +![Encoded Quote in PNG format](/assets/dna-sequence/quote.png.dith.gif) The larger the input stream is the larger the PNG file would be. @@ -315,7 +315,7 @@ dd if=<(openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count= Our freshly generated 1KB file looks something like this (its full of garbage data as intended). -![Sample binary file 1KB](/assets/dna-sequence/sample-binary-file.png) +![Sample binary file 1KB](/assets/dna-sequence/sample-binary-file.png.dith.gif) We create following binary files: - 1KB.bin -- cgit v1.2.3