Skip to content

πŸ” Encode text & files into DNA-style sequences (A, T, G, C) with reversible encoding and a numeric key. Built with Python. Secure, fun, and in beta. Great for creative encryption, obfuscation, and learning.

License

Notifications You must be signed in to change notification settings

AdhwaithAS/GeneCrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧬 GeneCrypt – Genetic obfuscation tool

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.


πŸ” Security Status

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.


πŸ“¦ Features

  • 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

πŸ› οΈ Installation

Clone the repository:

git clone https://github.com/your-username/genecrypt.git
cd genecrypt

Run with Python:

python genecrypt.py --help

πŸš€ Usage

πŸ” Encrypt Text

python genecrypt.py -m encrypt -t text -i "Hello, World!"

πŸ” Encrypt File

python genecrypt.py -m encrypt -t file -i example.txt

πŸ”“ Decrypt Text

python genecrypt.py -m decrypt -t text -i <GENETIC_CODE> -p <NUMERIC_SECRET>

πŸ”“ Decrypt File

python genecrypt.py -m decrypt -t file -i example.txt -p <NUMERIC_SECRET>

πŸ§ͺ How It Works

  1. Compress input with zlib and encode with base64
  2. Convert to binary and then into DNA-style bases (A=00, T=01, G=10, C=11)
  3. Generate the complement of the sequence
  4. Decode complement back to a password
  5. Hash and convert password into a numeric key
  6. Use key to encode original text into the final genetic string

πŸ”— Roadmap

  • Non-deterministic output with salt
  • Optional AES-256 hybrid encryption layer
  • Built-in HMAC for integrity verification
  • Web-based UI (coming soon!)

πŸ’‘ Example

Input: "Hello, World!"
➑ Genetic Code: ATGCTAGTC...
➑ Complement: TACGATCAG...
➑ Final DNA Code: TGCAAGT...
➑ Use secret to decode

πŸ§‘β€πŸ’» Author

Created by Adhwaith A S

Support

If you like this project, consider Buying me a coffee β˜•.


πŸ“œ License

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.

About

πŸ” Encode text & files into DNA-style sequences (A, T, G, C) with reversible encoding and a numeric key. Built with Python. Secure, fun, and in beta. Great for creative encryption, obfuscation, and learning.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages