Skip to content

echobash/DNA-Cryptography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

dnaCryptography

🧬 Binary β†’ DNA β†’ ASCII Decoder

This project demonstrates a fun and unconventional encoding/decoding pipeline:

Binary β†’ DNA bases (A, G, C, T) β†’ ASCII text

It is inspired by DNA/genome-based encoding techniques often seen in CTFs, steganography challenges, and bio-inspired computing puzzles.

βΈ»

πŸ“Œ Overview

The script reads a binary string from a file (dna.txt) and decodes it in two stages: 1. Binary β†’ DNA β€’ Each 2-bit binary chunk is mapped to a DNA base. 2. DNA β†’ ASCII β€’ Every 3 DNA bases (a codon) are mapped to readable characters using a predefined codon table.

βΈ»

πŸ“‚ Project Structure . β”œβ”€β”€ dna.txt # Input file containing binary data β”œβ”€β”€ decoder.py # Python decoding script └── README.md # This file

2️⃣ Run the script python decoder.py

About

Scripts to convert binary bits to dna codons to ascii

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages