How Encryption Works
net-security.org has a beautiful way to explain how encryption works and I couldn’t help but adapt that explanation here.
This is we encrypt a simple message like “Send Me Link Love"
Take a string of alphabets as shown below
Have another string of alphabets like those shown below
Reposition the alphabets such that we move each alphabet in this string to 4 places to the right. So that it looks like this:
Now if you keep both the strings one below the other, like this
ABCD EFGH IJKL MNOP QRST UVWXYZ
WXYZ ABCD EFGH IJKL MNOP QRSTUV
You have one re-arranged alphabet that corresponds to the original alphabet you would like to use. Hence, “Send Me Link Love" would read as “OAJZ IA HEJG HKRA"
So you could now successfully encrypt a message, using an algorithm (Moving it to X places right and writing down the alphabet that corresponds to the original one , after moving it) and a key ( that you moved it to 4 places right).
So if your recipient knows this, it is easy to decrypt the code and read the message. However, from a purely security standpoint -- this is still very vulnerable to hacks because it is relatively easy to try the keys between the range of 0 to 26 in this case and crack the code, isn’t it?