Code substitution technique sliding (shift) with a modulus of 26 to give numbers to every alphabet such as A <> 0, b <> 1 ... .... Z <> 25. To be more clear, consider the example below:
Text-Original: "We Will Meet at Mid Night"
The above sentence gets the numbers from each letter as follows:
22 4 22 8 11 11 12 4 4 19 0 19 12 8 3 13 8 6 7 19
To get the text-code, we have a lock 11. By adding saetiap-value of the original text with the key 11 is obtained:
7 15 7 19 22 22 23 15 15 4 11 4 23 19 14 24 19 17 18 4
If more than 20, when coupled with the key then will be reduced by 26.
For example, 22 +11 = 33-26 = 7. Once converted into the letter, it will get the text-code:
"HPHTWWXPPELEXTOYTRSE"
Text-Original: We meet at will from mid night
Text-code: HPHTWWXPPELEXTOYTRSE
Key: 11
The above sentence gets the numbers from each letter as follows:
22 4 22 8 11 11 12 4 4 19 0 19 12 8 3 13 8 6 7 19
To get the text-code, we have a lock 11. By adding saetiap-value of the original text with the key 11 is obtained:
7 15 7 19 22 22 23 15 15 4 11 4 23 19 14 24 19 17 18 4
If more than 20, when coupled with the key then will be reduced by 26.
For example, 22 +11 = 33-26 = 7. Once converted into the letter, it will get the text-code:
"HPHTWWXPPELEXTOYTRSE"
Text-Original: We meet at will from mid night
Text-code: HPHTWWXPPELEXTOYTRSE
Key: 11
0 komentar:
Posting Komentar