1. Examples
1. Homophonic Cipher encoder
Text : ABCD efghi Key Table : A,01,02,03,04;B,05;C,06,07;D,08,09,10;E,11,12,13,14,15,16;F,17;G,18,19;H,20,21;I,22,23,24;J,25;K,26;L,27,28;M,29,30;N,31,32,33;O,34,35,36;P,37,38;Q,39;R,40,41,42;S,43,44,45;T,46,47,48,49;U,50,51;V,52;W,53,54;X,55;Y,56,57;Z,58 Replacement Order : Random OrderSolution:The Homophonic Cipher is a substitution cipher in which each plaintext character can map to one or more numbers. Each char and each code | A | 01,02,03,04 | | B | 05 | | C | 06,07 | | D | 08,09,10 | | E | 11,12,13,14,15,16 | | F | 17 | | G | 18,19 | | H | 20,21 | | I | 22,23,24 | | J | 25 | | K | 26 | | L | 27,28 | | M | 29,30 | | N | 31,32,33 | | O | 34,35,36 | | P | 37,38 | | Q | 39 | | R | 40,41,42 | | S | 43,44,45 | | T | 46,47,48,49 | | U | 50,51 | | V | 52 | | W | 53,54 | | X | 55 | | Y | 56,57 | | Z | 58 |
Each char and each code | Plaintext | A | B | C | D | | E | F | G | H | I | | Ciphertext | 04 | 05 | 06 | 09 | | 16 | 17 | 18 | 21 | 24 |
So finally | Plaintext | : ABCD efghi | | Ciphertext | : 04 05 06 09 16 17 18 21 24 |
2. Homophonic Cipher encoder
Text : hello world Key Table : A,01,02,03,04;B,05;C,06,07;D,08,09,10;E,11,12,13,14,15,16;F,17;G,18,19;H,20,21;I,22,23,24;J,25;K,26;L,27,28;M,29,30;N,31,32,33;O,34,35,36;P,37,38;Q,39;R,40,41,42;S,43,44,45;T,46,47,48,49;U,50,51;V,52;W,53,54;X,55;Y,56,57;Z,58 Replacement Order : Random OrderSolution:The Homophonic Cipher is a substitution cipher in which each plaintext character can map to one or more numbers. Each char and each code | A | 01,02,03,04 | | B | 05 | | C | 06,07 | | D | 08,09,10 | | E | 11,12,13,14,15,16 | | F | 17 | | G | 18,19 | | H | 20,21 | | I | 22,23,24 | | J | 25 | | K | 26 | | L | 27,28 | | M | 29,30 | | N | 31,32,33 | | O | 34,35,36 | | P | 37,38 | | Q | 39 | | R | 40,41,42 | | S | 43,44,45 | | T | 46,47,48,49 | | U | 50,51 | | V | 52 | | W | 53,54 | | X | 55 | | Y | 56,57 | | Z | 58 |
Each char and each code | Plaintext | H | E | L | L | O | | W | O | R | L | D | | Ciphertext | 21 | 13 | 27 | 27 | 34 | | 54 | 35 | 40 | 27 | 08 |
So finally | Plaintext | : hello world | | Ciphertext | : 21 13 27 27 34 54 35 40 27 08 |
This material is intended as a summary. Use your textbook for detail explanation.Any bug, improvement, feedback then Submit Here
|