/DNA_cryptography

DNA based Encryption and Decryption Algorithm

Primary LanguagePython

DNA_cryptography

This program allows you to use the DNA algorithm in cryptography.

DNA based Encryption and Decryption Algorithm

* Use dna_encryption.py to encrypt your message.
* Use dna_decryption.py to decrypt it.

DNA encryption is a type of substitution encryption as it replaces each character in the message with its DNA equivalent:

DNA codes

The encryption algorithm has been made with the DNA codon table, A codon table can be used to translate a genetic code into a sequence of amino acids. The standard genetic code is traditionally represented as an RNA codon table, because when proteins are made in a cell by ribosomes, it is messenger RNA that directs protein biosynthesis :

algo

Symmetric encryption is a type of encryption where only one key (a secret key) is used to both encrypt and decrypt electronic information. The entities communicating via symmetric encryption must exchange the key so that it can be used in the decryption process.


Usage

user$ python3 dna_encryption.py
Input: hello world
Encryption: ACTACAAGTAGTATGCTTGCGATGCACAGTAAT

user$ python3 dna_decryption.py
Input: ACTACAAGTAGTATGCTTGCGATGCACAGTAAT
Decryption: hello world

Note:

This program is inspired by b00t2root19 CTF: Genetics, and John Hammond's writeup

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.