1. One-Time Pad Cipher / Vernam Cipher encoder
Text : ABCD efghi
Key : keyonetwothree
Alphabet : abcdefghijklmnopqrstuvwxyzSolution:The One-Time Pad (OTP) cipher / Vernam cipher, is an encryption technique that is probably unbreakable and required key which length must be greater than or equal to message length.
Alphabet = abcdefghijklmnopqrstuvwxyz
| Letter | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z |
| Number | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
Each letter is shifted down based on the key letter
| Plaintext | A | B | C | D | | e | f | g | h | i |
Text Value (2) | 0 | 1 | 2 | 3 | | 4 | 5 | 6 | 7 | 8 |
| Key | k | e | y | o | | n | e | t | w | o |
Key Value (4) | 10 | 4 | 24 | 14 | | 13 | 4 | 19 | 22 | 14 |
Addition (2) + (4) Mod 26 | 10 | 5 | 26=0 | 17 | | 17 | 9 | 25 | 29=3 | 22 |
| Ciphertext | K | F | A | R | | r | j | z | d | w |
So finally
| Plaintext | : ABCD efghi |
| Key | : keyonetwothree |
| Ciphertext | : KFAR rjzdw |
2. One-Time Pad Cipher / Vernam Cipher encoder
Text : hello world
Key : fourfivesix
Alphabet : abcdefghijklmnopqrstuvwxyzSolution:The One-Time Pad (OTP) cipher / Vernam cipher, is an encryption technique that is probably unbreakable and required key which length must be greater than or equal to message length.
Alphabet = abcdefghijklmnopqrstuvwxyz
| Letter | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z |
| Number | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
Each letter is shifted down based on the key letter
| Plaintext | h | e | l | l | o | | w | o | r | l | d |
Text Value (2) | 7 | 4 | 11 | 11 | 14 | | 22 | 14 | 17 | 11 | 3 |
| Key | f | o | u | r | f | | i | v | e | s | i |
Key Value (4) | 5 | 14 | 20 | 17 | 5 | | 8 | 21 | 4 | 18 | 8 |
Addition (2) + (4) Mod 26 | 12 | 18 | 31=5 | 28=2 | 19 | | 30=4 | 35=9 | 21 | 29=3 | 11 |
| Ciphertext | m | s | f | c | t | | e | j | v | d | l |
So finally
| Plaintext | : hello world |
| Key | : fourfivesix |
| Ciphertext | : msfct ejvdl |
This material is intended as a summary. Use your textbook for detail explanation.Any bug, improvement, feedback then
Submit Here