A PHP Error was encountered

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

Happy shop


The one-time pad

The one-time pad (OTP) was used by Gilbert Vernam in 1917 for telex communications. Frank Miller in 1882 was the first to describe the one-time pad system for securing telegraphy. It was also used by Che Guevara. The code is absolutely unbreakable if the following conditions are met:

One form of this encryption is a letter to number conversion using a monomedinome table.
In this table letters are converted to number groups, the groups contain either one or two digits.

See table below:

conversion table
Letters from the keyword (renstal) are converted to single digits.
Other letters are converted to 2 digits.
r = 2
e = 8
n = 1

b = 62
c = 68
d = 61

j = 92
k = 98

The table has 3 red cells they can't be used because this would destroy the division between the 1-digit and 2-digit letters.
Cell 66 is a letter to number sign meaning numbers are following.
Cell 99 is end of number sign: revert to text.
Unused cells can have a special meaning but are in this case used for interpunction.
Cell 56 is used as a null * a meaningless character.
This is a secret message to be readable by 2 men

If we replace the letters from the message above by the numbers from the table we get: 360674656746506548682836591844063865394656286528061062786562546566299659181
This already looks quite encrypted

Let's make this more readable.

plaintextthis is a secret message to be readable by (2) men
Grouped360674656746506548682836591844063865394656286528061062786562546566299659181


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.

Numericalplaintext360674656746506548682836591844063865394656286528061062786562546566299659181
Random (key)521103124804894354121332126638142777555599684618712676338241575598172749845
Cryptogram881777770540390892703168617472105532849145860136773638014703011054361398926


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.

Cryptogram881777770540390892703168617472105532849145860136773638014703011054361398926
Random (key)521103124804894354121332126638142777555599684618712676338241575598172749845
Numericalplaintext360674656746506548682836591844063865394656286528061062786562546566299659181


We need to build the digit groups again.

Grouped360674656746506548682836591844063865394656286528061062786562546566299659181


We lookup these numbers in our table.

Plaintextthis is a secret message to be readable by 2 men


RvH info@rvh1.nl