𧬠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