Teg>Ean wrote:If anyone is interested, I drew up a new key for the 408 that Includes what I think are the correct cycle positions for each symbol and which is organized by a standard keyboard layout.
Thanks, very handy!
Teg>Ean wrote:If anyone is interested, I drew up a new key for the 408 that Includes what I think are the correct cycle positions for each symbol and which is organized by a standard keyboard layout.
Teg>Ean wrote:Particularly odd since "everything comes back to 'E'." Did I mention I find this weird?
Teg>Ean wrote:That's not to say that an actual keyboard layout is unrelated to the construction of the 408 key, but maybe there's a risk of confirmation bias here.
Jarlve wrote:I think it is simple what to do here, we need to statistically test if the keyboard observation has any significance.
_pi wrote:Here are the corrected values by keyboard layout. The error I initially made in the post I deleted was to compare, for example, a random key applied to the azerty layout with the z408 key applied to the qwerty layout, as opposed to comparing it to the z408 key applied to the azerty layout.
I generated 10 million random keys to compare them to the z408 key on how many directly adjacent letter symbols can be found, per keyboard layout.
qwerty: 1.3% of random keys exhibit an equal or higher adjacency than the z408 key (as seen in previous posts)
azerty: 6.48% of random keys exhibit an equal or higher adjacency than the z408 key
qwertz: 7.37% of random keys exhibit an equal or higher adjacency than the z408 key
Dvorak: 14.25% of random keys exhibit an equal or higher adjacency than the z408 key
The z408 key exhibits a higher affinity with the qwerty keyboard than with the others, in terms of number of symbol letters being directly adjacent to their plaintext letter.
Finder wrote:In response to doranchak's suggestion, I programmed a simple simulation.
Each run of the simulation randomly generates a key with a similar distribution to that of the 408 (i.e. 'A' must be represented by 3 other letters on the keyboard, 'B' must be represented by 1, 'C' must be represented by 1, 'D' must be represented by 1, 'E'' must be represented by 5, etc. Refer to the graphic in Jarlve's post if you're not clear on what I mean.).
Then, each run computes the average distance (on the QWERTY keyboard) from the plaintext character to its ciphertext equivalents. For example, in the 408, the V in the ciphertext represents B in the plaintext, so B is, on average, 1 unit of distance away from its ciphertext equivalent, V.
At the conclusion of N simulations, the program then computes the mean distance and its variance between each plaintext character and its ciphertext equivalent(s).
Here are the initial results for N = 10,000. I think the plot's sufficiently descriptive of its content to omit further description here.
My interpretation: The plot shows that 8 of the 22 plaintext letters (A, E, I, N, O, P, R, and T) are closer than the simulation's 95% confidence interval would predict. Should we consider that significant? I think so, but I'd like to hear from you.
In the interest of full disclosure, I wrote the program rather quickly, so it's possible I've made an error somewhere. I'll review the code further, and I plan to rewrite the program in another language when I've got a chance. But as of now, these initial results seem reasonable. If anyone wants me to upload the code, I'd be happy to upload the second (cleaner) draft at a later time.
I'd like to hear your thoughts.
Return to Zodiac Cipher Mailings & Discussion
Users browsing this forum: 4on4off, curiousben, letega and 47 guests