Intro: Arduino Based Encrypter
We all want to make that cool Arduino project, that's not really about the harware, but more about the software. Well here's one - Arduino Based Encryption Over Serial Monitor. It was really fun to design. There can be innumerable applications of this and endless possibilities for interfacing this with other projects. I'm sure you guys will enjoy this
Step 1: Things You Need
Here's the list (cost for project is about 24 USD)
1)HC-05 Bluetooth Module, the fastest way to send data to the Arduino remotely (and cheapest) would be this. This is just about 5 USD
2) 2* Arduino Uno (or other). Consequently - 2 * Arduino Adapters (About 16 USD)
3) Jumper Wires (for connections) - about USD 1 maybe
4) A mobile with Android OS , for sending data to the module (The application to be used ) - if u r a iOS user, you can use another application, but make sure it serves the same purpose as this app.
5) Breadboard (optional ) - 2 USD
Step 2: Understanding How the Project Works
There are two Arduinos. Each connected to your laptop. You have a HC-05 connected to your Arduino (more on the connections in the next step ). You input your data/transmission , into the application (in the terminal mode). The information is sent to the HC-05 and consequently, the Arduino. The Arduino, assigns a number value to each character ( in my code its only A-Z in capitals, u may wish to add more, with both upper and lower cases). When the arduino,receives these characters, it performs a function on the number, and prints the 'output' to the Serial Monitor.
The other Arduino acts as the 'encrypter key' provider ). You enter the password into the serial monitor of the other Arduino (one character at a time). If this is accepted the Arduino sends the encryption key to the Encrypting Arduino - which is in fact a high signal. So long as the Encrypting Arduino, receives a HIGH signal, it does not encrypt the data.
Now that you have understood, the working of the project, the rest is just application.
Step 3: The Circuit and Code
Now that we know how the project works, lets get it working.
First, make the connections.Here's the Circuit
Next, the code.
The code is split into two - one for the Encrypting Arduino,and the other for Decrypting Arduino.
Encrypting Arduino Code There are some syntax requirements for entering the characters using your phone (apart from the obvious - entering all characters in capitals) - be sure to check it out.
Now, just connect the circuit, and upload the codes.
This is intellectual property of Mohit Vakil. No content may be reproduced without citing credit to original author - Mohit Vakil.
Step 4: Power Up!!!
Connect the adapter to your laptop, and the project is functional. When you launch the serial monitor with the Encrypting Arduino, you can see Encrypted Values. When you launch the Decrypter Arduino's Serial Monitor - you will get prompts to enter the pass key (RMV).