Severity: 8192
Message: Methods with the same name as their class will not be constructors in a future version of PHP; Cacheall_info has a deprecated constructor
Filename: libraries/cacheall_info.php
Line Number: 136
plaintext | t | h | i | s | i | s | a | s | e | c | r | e | t | m | e | s | s | a | g | e | t | o | b | e | r | e | a | d | a | b | l | e | b | y | ( | 2 | ) | m | e | n | ||||||||||
Grouped | 3 | 60 | 67 | 4 | 65 | 67 | 4 | 65 | 0 | 65 | 4 | 8 | 68 | 2 | 8 | 3 | 65 | 91 | 8 | 4 | 4 | 0 | 63 | 8 | 65 | 3 | 94 | 65 | 62 | 8 | 65 | 2 | 8 | 0 | 61 | 0 | 62 | 7 | 8 | 65 | 62 | 54 | 65 | 66 | 2 | 99 | 65 | 91 | 8 | 1 |
The next step is to add real random numbers (the key) to every digit.
This is done modulo 10 meaning when 8 and 7 are added the result is 5 not 15 ( 8+7 -10 ).
On decryption this is no problem 5 minus 7 can only leave 8 ( 5-7 +10).
The numbers need to be really random and can only be used once.
We take them from www.random.org.
Numericalplaintext | 3 | 6 | 0 | 6 | 7 | 4 | 6 | 5 | 6 | 7 | 4 | 6 | 5 | 0 | 6 | 5 | 4 | 8 | 6 | 8 | 2 | 8 | 3 | 6 | 5 | 9 | 1 | 8 | 4 | 4 | 0 | 6 | 3 | 8 | 6 | 5 | 3 | 9 | 4 | 6 | 5 | 6 | 2 | 8 | 6 | 5 | 2 | 8 | 0 | 6 | 1 | 0 | 6 | 2 | 7 | 8 | 6 | 5 | 6 | 2 | 5 | 4 | 6 | 5 | 6 | 6 | 2 | 9 | 9 | 6 | 5 | 9 | 1 | 8 | 1 |
Random (key) | 5 | 2 | 1 | 1 | 0 | 3 | 1 | 2 | 4 | 8 | 0 | 4 | 8 | 9 | 4 | 3 | 5 | 4 | 1 | 2 | 1 | 3 | 3 | 2 | 1 | 2 | 6 | 6 | 3 | 8 | 1 | 4 | 2 | 7 | 7 | 7 | 5 | 5 | 5 | 5 | 9 | 9 | 6 | 8 | 4 | 6 | 1 | 8 | 7 | 1 | 2 | 6 | 7 | 6 | 3 | 3 | 8 | 2 | 4 | 1 | 5 | 7 | 5 | 5 | 9 | 8 | 1 | 7 | 2 | 7 | 4 | 9 | 8 | 4 | 5 |
Cryptogram | 8 | 8 | 1 | 7 | 7 | 7 | 7 | 7 | 0 | 5 | 4 | 0 | 3 | 9 | 0 | 8 | 9 | 2 | 7 | 0 | 3 | 1 | 6 | 8 | 6 | 1 | 7 | 4 | 7 | 2 | 1 | 0 | 5 | 5 | 3 | 2 | 8 | 4 | 9 | 1 | 4 | 5 | 8 | 6 | 0 | 1 | 3 | 6 | 7 | 7 | 3 | 6 | 3 | 8 | 0 | 1 | 4 | 7 | 0 | 3 | 0 | 1 | 1 | 0 | 5 | 4 | 3 | 6 | 1 | 3 | 9 | 8 | 9 | 2 | 6 |
This would be send:
881777770540390892703168617472105532849145860136773638014703011054361398926
Let's take a look at the letter 's' in our monomedinome table we converted it to 4.
But encrypted it is represented as 7, 4, 9, 7 and 2 (yellow).
If we look at the first letter 'e' (blue) from the message we see it is also represented as 2.
These two factors destroy the possibility of frequency analysis.
Also note that the first 's' has moved from position 4 in the message to position 6 in the cryptogram.
For decryption we need the conversion table and the used random numbers.
Cryptogram | 8 | 8 | 1 | 7 | 7 | 7 | 7 | 7 | 0 | 5 | 4 | 0 | 3 | 9 | 0 | 8 | 9 | 2 | 7 | 0 | 3 | 1 | 6 | 8 | 6 | 1 | 7 | 4 | 7 | 2 | 1 | 0 | 5 | 5 | 3 | 2 | 8 | 4 | 9 | 1 | 4 | 5 | 8 | 6 | 0 | 1 | 3 | 6 | 7 | 7 | 3 | 6 | 3 | 8 | 0 | 1 | 4 | 7 | 0 | 3 | 0 | 1 | 1 | 0 | 5 | 4 | 3 | 6 | 1 | 3 | 9 | 8 | 9 | 2 | 6 |
Random (key) | 5 | 2 | 1 | 1 | 0 | 3 | 1 | 2 | 4 | 8 | 0 | 4 | 8 | 9 | 4 | 3 | 5 | 4 | 1 | 2 | 1 | 3 | 3 | 2 | 1 | 2 | 6 | 6 | 3 | 8 | 1 | 4 | 2 | 7 | 7 | 7 | 5 | 5 | 5 | 5 | 9 | 9 | 6 | 8 | 4 | 6 | 1 | 8 | 7 | 1 | 2 | 6 | 7 | 6 | 3 | 3 | 8 | 2 | 4 | 1 | 5 | 7 | 5 | 5 | 9 | 8 | 1 | 7 | 2 | 7 | 4 | 9 | 8 | 4 | 5 |
Numericalplaintext | 3 | 6 | 0 | 6 | 7 | 4 | 6 | 5 | 6 | 7 | 4 | 6 | 5 | 0 | 6 | 5 | 4 | 8 | 6 | 8 | 2 | 8 | 3 | 6 | 5 | 9 | 1 | 8 | 4 | 4 | 0 | 6 | 3 | 8 | 6 | 5 | 3 | 9 | 4 | 6 | 5 | 6 | 2 | 8 | 6 | 5 | 2 | 8 | 0 | 6 | 1 | 0 | 6 | 2 | 7 | 8 | 6 | 5 | 6 | 2 | 5 | 4 | 6 | 5 | 6 | 6 | 2 | 9 | 9 | 6 | 5 | 9 | 1 | 8 | 1 |
We need to build the digit groups again.
Grouped | 3 | 60 | 67 | 4 | 65 | 67 | 4 | 65 | 0 | 65 | 4 | 8 | 68 | 2 | 8 | 3 | 65 | 91 | 8 | 4 | 4 | 0 | 63 | 8 | 65 | 3 | 94 | 65 | 62 | 8 | 65 | 2 | 8 | 0 | 61 | 0 | 62 | 7 | 8 | 65 | 62 | 54 | 65 | 66 | 2 | 99 | 65 | 91 | 8 | 1 |
We lookup these numbers in our table.
Plaintext | t | h | i | s | i | s | a | s | e | c | r | e | t | m | e | s | s | a | g | e | t | o | b | e | r | e | a | d | a | b | l | e | b | y | 2 | m | e | n |