Have you ever wanted to be able to write something down, or send someone a secret message, without anyone else besides you or your friends being able to read it?
Or perhaps you are simply looking for a way to come up with a more secure, yet easy to remember password for something?
(Like your Paint account.)
Well, the techniques in these lessons can be used for these, and for many other things, as well.
The techniques in these lessons all use a single, simple idea: The idea of treating letters and other characters as numbers.
I first became familiar with this idea when helping my dad do a quest in a certain RPG, which used an enciphering technique called "One-time pad", which assigns a numeric value to each letter of the alphabet, with "A" being 0, "B" being 1, "C" being 2, etc., all the way up to "Z", which is 25.
Let's say your message is:
"......Souzouryoku ga Tarinaiyo -Denshousha Higana"
(That's a slightly modified version of my signature in romaji, BTW.)
Well, One-time pad essentially allows you to "password protect" your Message, by enciphering it.
For example, let's say you use the word "Shark" as your "password".
"S" is the first letter of the message, and being the 19th letter of the alphabet, has a value of 18, and "S" is also the first letter of the cipher in this case, so you simply add 18+18=36.
Now, since the last letter of the alphabet only has a value of 25, any time the result exceeds that, you subtract 26, in this case, 36-26=10, which would be "K", the 11th letter of the alphabet.
You keep adding the cipher/password to the message like this, adding the value of each letter of the cipher to each letter of the message (O+H=V, U+A=U, etc.,) until you've reached the last letter of the cipher (in this case, the "K" in "Shark", and then you start at the beginning of the cipher again, as many times as necessary, until the entire message is enciphered.
The result should be this:
"......Kvuqymyyfum na Kkjpnrsqv -Dvxkoolczh Hzqsua"
(Hopefully I did that right, lol!)
Now this is a great idea, but it doesn't take into account a variety of different things, including spacing, capitalization, non-letter characters, etc., which means it's not the most effective way of concealing a message.
There are a number of ways you can make it better, however, such as using better ciphers (rather than a 5 letter word like "Shark", enciphering the same message multiple times, and even enciphering things in reverse, by subtracting the value of each cipher Letter from the message, rather than adding it.
To decipher the message, you do just that: subtract the value of the cipher from the enciphered message, and whenever the result is negative, you simply add 26 to it, just like when it exceeds 25 when adding it.
You can also encipher the message this way, however, and if enciphering the same message multiple times, could apply some ciphers using addition, and some using subtraction, making it more secure.
(And to decipher a message enciphered in reverse, you use addition, of course.)
How can this help you come up with better passwords?
It's simple: Combine multiple passwords together using this technique.
The result will look essentially like a bunch of random letters, yet you can remember it in a pinch if necessary, by going through the same process used to create it.
(You need to be very careful not to make any mistakes when calculating it and entering it for the first time, though.)
Anyway, that's all for this lesson.
In the next one, I'll share an enciphering technique I came up with, that uses the same basic principles as One-time pad, but adds additional characters into the mix, making it WAY more secure.
Draconid_Jo
21 Jan 2020 05:03
In reply to Gemini Guardian
Well, don't feel too bad, because it is pretty complicated stuff.
Let me try to do a better job of explaining it:
One-time pad works by converting letters between "A" and "Z" into numbers between 0 and 25.
First, you convert each letter of the text you want to encipher into a number (you can go based off of the positions of the letters in blue, in the Value Guide I show below), and then, you come up with a "password" (called a "cipher", and do the same to it.
After you've done this, you add the value of the 1st letter of the cipher to the 1st letter of the text, and then the value of the 2nd letter of the cipher to the 2nd letter of the text, and so on.
(Like in the picture below.)
Afterwards you convert the resulting numbers back into letters (like above), and that's how you apply the cipher.
(I list the numeric values of each letter directly beneath them in the 2nd picture.)
If the value ever exceeds 25, you subtract 26 from it before converting it back to a letter (or you can use the Value Guide), and the result is the enciphered text.
Now, this is what the process looks like in reverse:
As you can see, you subtract the value of each letter of the cipher from the enciphered text, and the result is the original text.
(Whenever the result is a negative number, you add 26 before converting it back into letters, or you can use the Value Guide.)
Hopefully I did a good enough job of explaining it.
If you still don't get it, be sure to let me know, so I can try to clarify any part of it you found confusing.
One thing I'd like to mention, is that one way of correcting the Spacing flaw of One-time Pad would be to increase the value of each Letter by 1, and to include Spaces, with a value of 0.
(This is something I did with the technique I plan on teaching in Lesson 2, BTW.)