GeneCrypt is a Python-based CLI tool that encodes and decodes text or files into DNA-style sequences (A, T, G, C) using a custom, reversible transformation pipeline.
Itβs a blend of data compression, hashing, and genetic code-inspired encoding β designed to be both secure and fun.
GeneCrypt is currently in early beta.
- β The encoded data is reversible only with the correct numeric key
- π The encoding method is decodable with effort in its current form
- π‘οΈ Future updates will improve security with:
- Salted and non-deterministic key generation
- Hybrid encryption support
- Optional HMAC integrity checks
β οΈ Until then, consider GeneCrypt secure for experimentation, prototyping, and creative applications β but not for storing high-risk sensitive data.
- Convert any text or file to a DNA-style sequence (ATGC)
- Compress and encode input using zlib + base64
- Generate a numeric key using SHA-256 from a derived password
- Reversible decoding with the correct key
- File support for encryption/decryption
- Easy-to-use command line interface
Clone the repository:
git clone https://github.com/your-username/genecrypt.git
cd genecryptRun with Python:
python genecrypt.py --helppython genecrypt.py -m encrypt -t text -i "Hello, World!"python genecrypt.py -m encrypt -t file -i example.txtpython genecrypt.py -m decrypt -t text -i <GENETIC_CODE> -p <NUMERIC_SECRET>python genecrypt.py -m decrypt -t file -i example.txt -p <NUMERIC_SECRET>- Compress input with zlib and encode with base64
- Convert to binary and then into DNA-style bases (A=00, T=01, G=10, C=11)
- Generate the complement of the sequence
- Decode complement back to a password
- Hash and convert password into a numeric key
- Use key to encode original text into the final genetic string
- Non-deterministic output with salt
- Optional AES-256 hybrid encryption layer
- Built-in HMAC for integrity verification
- Web-based UI (coming soon!)
Input: "Hello, World!"
β‘ Genetic Code: ATGCTAGTC...
β‘ Complement: TACGATCAG...
β‘ Final DNA Code: TGCAAGT...
β‘ Use secret to decode
Created by Adhwaith A S
If you like this project, consider Buying me a coffee β.
This project is licensed under the Apache License 2.0.
Β© 2025 Adhwaith A S. You must retain attribution to the original author when using or modifying this code.