An Intro To encryption with polyalphabetical cyphering
The basis of encryption can be broken down into two main actions: replacing plaintext with coded text and rearranging text so it is not readable. Polyalphabetical cyphers are a basic form of encryption which replaces plaintext with coded text in an attempt to hide the message being transmitted. To explain polyalphabetical cyphers we should first examine monoalphabetical cyphers.
this table provides a monoalphabetical cypher to code a message by replacing the messages A with the coded g and so forth
A g
B a
C r
D v
E h
F s
G u
H e
I t
J q
K p
L w
M b
N c
O z
P f
Q y
R n
S x
T o
U d
V j
W m
X k
Y i
Z l
taking a message such as THEMESSAGETOSEND and coding it into oehbhxxguhozxhcv
this method of coding is not very secure, the problem is that the message shows too much of itself
in the sample above we have a message with 16 chars
h appears 4 times or 25% of the message, since the letter E appears often in spoken English one could assume that E may be replaced with h in the message
- - E - E - - - - E - - - E - -
also x appears beside another x, so language is again consulted for letters that match together perhaps S would be attempted
- - E - ESS - - - E - - SE - -
already the message is almost half showing, so a need for a more secure method brought polyalphabetic cypers
consider the same message: THEMESSAGETOSEND
we will use three tables this time to code the message, the tables will be used in a order based upon a KEY
KEYKEYKEYKEYKEYK
THEMESSAGETOSEND
the letters with a K above them will be replaced with the letters in the K table, ect..
this method allows our message to hide repeated letters and to lower the frequency of some letters over others. Each table complements the others inorder to minimize the frequency of one letter over another in the coded message
this method is more secure than using one table but still is not uncrackable, the flaw is in the message coded. English has many three character chucks such as "ing" these patterns can be seen in the coded message if enough data is gathered. Once a pattern of three or more repeating characters is found the process of decoding the message moves easily. The factors of the distance between repeating patterns reflect the number of tables or letters in the key, if the coded method is divided into groups based upon the length of the key those groups would be the same as monoalphabetic coded messages.
Although these methods are far from secure, they help with other methods to make messages difficult to uncover.