User Tools

Site Tools


proiecte:encrypted-communication

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
proiecte:encrypted-communication [2017/01/23 21:12]
veronica.velciu [Encrypted communication]
proiecte:encrypted-communication [2017/01/23 22:30] (current)
veronica.velciu [Resources]
Line 106: Line 106:
   - Continue reading byte by byte until the payload is received.   - Continue reading byte by byte until the payload is received.
   - Receive the checksum and check it.   - Receive the checksum and check it.
-  - Decrypt the message by using **decryptECB** with the give key and save the plain text to the user data structure. +  - Decrypt the message by using **decryptECB** with the give key and save the plain text to the user data structure. 
 + 
 + 
 +**Testing the encrypted communication** 
 + 
 +In order to demonstrate the implemented functionality, I created three Arduino projects: 
 +  * **EncTransmitter**: Sends encrypted messages using the **sendEncData** function and a hard-coded key. 
 +  * **EncReceiver**: Receives encrypted messages using the **receiveEncData** function and the same key. 
 +  * **BadReceiver**: "The bad guy" - Tries to listen to what the other two nodes talk. Receives messages using the **receiveData** function, as he does not know the secret key. 
 + 
 +{{ :proiecte:enc-comm.jpg?800 | Encrypted communication}} 
 ===== Results ===== ===== Results =====
 +
 +The below picture shows the output of the implemented project. In the upper left corner you can see the output of **EncTransmitter** and in the upper right the output of **EncReceiver**. Below them is the attacker, represented by the **BadReceiver** project.
 +
 +{{ :proiecte:enc-comm-demo.png?1200 |}}
  
 ===== Resources ===== ===== Resources =====
 +
 +  * AES library implementation: {{:proiecte:aes.zip|}}
 +  * AES library tests: {{:proiecte:aes_test.zip|}}
 +  * Modified SparrowRadio library: {{:proiecte:sparrowradio.zip|}}
 +  * **EncTransmitter**, **EncReceiver** and **BadReceiver**: {{:proiecte:enccommunication.zip|}}
 +
  
  
proiecte/encrypted-communication.1485198723.txt.gz · Last modified: 2017/01/23 21:12 by veronica.velciu