Encrypting the text using Genetic Algorithm (crossover and mutation) and decrypting using neural network error back propagation.
Encryption:
- Get input data from the sender in ie plaintext.
- Convert plain text in ASCII format.
- Convert the ASCII value in to binary value (use asTarget value for the Error back propagation neural network).
- Take the binary string and divide in to equal size and crossover both string.
- Now use mutation over the string get from crossover section. This string use as cipher text and send this to the receiver over the network. Decryption:-
- Receiver receives the cipher text sending by the sender.
- Send that cipher text as input in to error back propagation neural network and set the target value.
- When the output data of the error back propagation neural network is same as target value then take the output.
- Convert that output (binary string) in to ASCII
- And last convert ASCII to corresponding to plain text.
On System 1 1.Run encryption.py on one system 2.On the same system run client.py
On System 2 1.Open Wireshark to capture the packets (filtered by ip_addr==ip of system1 and tcp) 2. Run server.py 3. save the captured packets as pcap file. 4. Run decryption.py