Now we know how to get input from the user, we can create a cool project.
Let’s make a Secret Spy Box with Super Fine Security*
* Not really secure
First we will accept a password to store in the Arduino volatile storage, the EEPROM memory. This means when the Arduino is turned off or reset then the password will still be in memory.
For a kind of (but not) encryption, we will use the ROT13 algorithm that “rotates” each letter of the entered password by 13. This means the password can be UNencrypted using the same method.
At the start of the sketch you will see the following:
This is telling the Arduino editor that when we compile the sketch, we want to include the EEPROM library. This is a set of code files that give us abilities and functions not present in our own sketch.