1. Morbit Cipher encoder
Text : ABCD efghi
Key : 192568734
Separator : |Solution:The Morbit cipher converts plaintext character to Morse code and then convert each 2 character pair (dot, dash, space) of Morse code to digits 1 to 9.
Morse Code:
| 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 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| .- | -... | -.-. | -.. | . | ..-. | --. | .... | .. | .--- | -.- | .-.. | -- | -. | --- | .--. | --.- | .-. | ... | - | ..- | ...- | .-- | -..- | -.-- | --.. | ----- | .---- | ..--- | ...-- | ....- | ..... | -.... | --... | ---.. | ----. |
Key permutation :| Letters | 1 | 9 | 2 | 5 | 6 | 8 | 7 | 3 | 4 |
| Order | 1 | 9 | 2 | 5 | 6 | 8 | 7 | 3 | 4 |
| Bigrams | .. | .- | .| | -. | -- | -| | |. | |- | || |
Step-1 : Each char and its Morsecode| Plaintext | A | B | C | D | | E | F | G | H | I |
| Morsecode | .- | -... | -.-. | -.. | | . | ..-. | --. | .... | .. |
The Morsecode of plaintext is joined using the '|' symbol to separate letters and '||' to separate words.
Morsecode : .-|-...|-.-.|-..||.|..-.|--.|....|..|
Step-2 : If the number of characters is not disible by 2 then '|' is added to the end of the morse codeMorsecode : .-|-...|-.-.|-..||.|..-.|--.|....|..||
Step-3 : Each 2 characters Morsecode and its corresponding key digits| 2 char Morsecode | .- | |- | .. | .| | -. | -. | |- | .. | || | .| | .. | -. | |- | -. | |. | .. | .| | .. | || |
| Ciphertext | 9 | 3 | 1 | 2 | 5 | 5 | 3 | 1 | 4 | 2 | 1 | 5 | 3 | 5 | 7 | 1 | 2 | 1 | 4 |
So finally
| Plaintext | : ABCD EFGHI |
| Morsecode | : .-|-...|-.-.|-..||.|..-.|--.|....|..|| |
| Ciphertext | : 9312553142153571214 |
2. Morbit Cipher encoder
Text : hello world
Key : 281569743
Separator : |Solution:The Morbit cipher converts plaintext character to Morse code and then convert each 2 character pair (dot, dash, space) of Morse code to digits 1 to 9.
Morse Code:
| 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 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| .- | -... | -.-. | -.. | . | ..-. | --. | .... | .. | .--- | -.- | .-.. | -- | -. | --- | .--. | --.- | .-. | ... | - | ..- | ...- | .-- | -..- | -.-- | --.. | ----- | .---- | ..--- | ...-- | ....- | ..... | -.... | --... | ---.. | ----. |
Key permutation :| Letters | 2 | 8 | 1 | 5 | 6 | 9 | 7 | 4 | 3 |
| Order | 2 | 8 | 1 | 5 | 6 | 9 | 7 | 4 | 3 |
| Bigrams | .. | .- | .| | -. | -- | -| | |. | |- | || |
Step-1 : Each char and its Morsecode| Plaintext | H | E | L | L | O | | W | O | R | L | D |
| Morsecode | .... | . | .-.. | .-.. | --- | | .-- | --- | .-. | .-.. | -.. |
The Morsecode of plaintext is joined using the '|' symbol to separate letters and '||' to separate words.
Morsecode : ....|.|.-..|.-..|---||.--|---|.-.|.-..|-..|
Step-2 : If the number of characters is not disible by 2 then '|' is added to the end of the morse codeMorsecode : ....|.|.-..|.-..|---||.--|---|.-.|.-..|-..||
Step-3 : Each 2 characters Morsecode and its corresponding key digits| 2 char Morsecode | .. | .. | |. | |. | -. | .| | .- | .. | |- | -- | || | .- | -| | -- | -| | .- | .| | .- | .. | |- | .. | || |
| Ciphertext | 2 | 2 | 7 | 7 | 5 | 1 | 8 | 2 | 4 | 6 | 3 | 8 | 9 | 6 | 9 | 8 | 1 | 8 | 2 | 4 | 2 | 3 |
So finally
| Plaintext | : HELLO WORLD |
| Morsecode | : ....|.|.-..|.-..|---||.--|---|.-.|.-..|-..|| |
| Ciphertext | : 2277518246389698182423 |