I have possible indentified a correlation between different sets of information that on first glance seems very related to the work of traveller1st trying to explain the pivots in: viewtopic.php?f=81&t=964&hilit=diagonal
The correlation seems so strong that I believe that the first person who can make sense of the data has a chance of solving the 340. I will try to explain it in a way that everybody can understand.
First of all the 340 is believed to be a homophonic substitution cipher similar to the 408. Various statistics back this up, more specifically it very likely seems to be cyclic. Homophonic substitution means that every letter could have more than one symbol substitution attached to it. Then there are 2 variants cyclic and random, cyclic means that for each letter, the symbol map is followed in order. And for random a dice is rolled to determine the symbol. Both have very different statistical signatures. I will from now on refer to cyclic homophonic substitution as CHS and random as RHS.
The letter to symbol map for the 408.

In a sense, how I see it, homophonic substitution simply blurs out the plaintext and information of the cipher.

Now some time ago I developed a system that uses the information of the non-repeats, I don't know if anyone else uses this data but I have found it to be extremly powerful. This measures, using every symbol in the cipher as a starting point, the length of each unique string. For instance, the string akin to CHS "ABCABCABC", has 7 unique sub-strings with a length of 3. For RHS the string is more likely to be random and will have shorter sub-strings of non-repeats. But measuring this for any cipher will give you a total equal to the cipher's length so you have to multiplicate the counts by the length of the string. This system is so powerful that it can easily distuinguish between CHS and RHS or between a plaintext, a random plaintext and vigenere. It can also be used to determine writing direction.
I took the information of the non-repeats to the next level and measure this data for 96 orientations. With orientation I mean, we write text in a right-to-left, top-to-bottom manner. Notice that you have a primary direction and a secondary direction. I figured our writing system is 2 dimensional and that using the common wind directions you have 16 different orientations. But the actual system that I developed for this uses an input and output direction, so following this you have already 240 (16x15) variations. I simplified this to either doing an orientation or undoing it, which relates to the input and the output. For each of these 32 orientations I also added the option to alternate the primary direction, starting even or uneven. So there you have 96.
Is it needed to gather the non-repeat data for 96 different orientations? How could this possibly relate to anything?
To answer these questions I have to spill quite some data. And I will use some ciphers to compare, each cipher will be capped to 340 characters. Now following various data for various ciphers including that of the non-repeats and other systems for reference later on, you don't have to interpret it right now. Just scroll down now.
CHS ciphers:
408:
- Code: Select all
system 1: 3538, 11317
system 2: 5714
system 3: 3351
primary direction, secondary direction: normal, primary direction alternated starting even, uneven.
output: (do)
------------------------
normal directions ----->
e-s: 4692, 4247, 4466.
w-s: 4338, 4466, 4247.
e-n: 4338, 4466, 4247.
w-n: 4692, 4247, 4466.
rotations ------------->
s-e: 3062, 2907, 2997.
n-e: 3135, 2997, 2907.
s-w: 3135, 2997, 2907.
n-w: 3062, 2907, 2997.
diagonals 1 ----------->
ne-se: 2757, 2952, 3045.
sw-se: 3052, 3045, 2952.
ne-nw: 3052, 3045, 2952.
sw-nw: 2757, 2952, 3045.
diagonals 2 ----------->
se-sw: 3055, 3115, 2992.
nw-sw: 2802, 2992, 3115.
se-ne: 2802, 2992, 3115.
nw-ne: 3055, 3115, 2992.
------------------------
input: (undo)
------------------------
normal directions ----->
e-s: 4692, 4247, 4466.
w-s: 4338, 4466, 4247.
e-n: 4338, 4247, 4466.
w-n: 4692, 4466, 4247.
rotations ------------->
s-e: 3218, 3326, 3474.
n-e: 3315, 3474, 3326.
s-w: 3315, 3474, 3326.
n-w: 3218, 3326, 3474.
diagonals 1 ----------->
ne-se: 2578, 2531, 2828.
sw-se: 2890, 2828, 2531.
ne-nw: 2890, 2531, 2828.
sw-nw: 2578, 2828, 2531.
diagonals 2 ----------->
se-sw: 2979, 3007, 2882.
nw-sw: 3001, 2882, 3007.
se-ne: 3001, 3007, 2882.
nw-ne: 2979, 2882, 3007.
------------------------
ray_n:
- Code: Select all
system 1: 3488, 11518
system 2: 5629
system 3: 3530
primary direction, secondary direction: normal, primary direction alternated starting even, uneven.
output: (do)
------------------------
normal directions ----->
e-s: 5046, 4823, 4664.
w-s: 4452, 4664, 4823.
e-n: 4452, 4664, 4823.
w-n: 5046, 4823, 4664.
rotations ------------->
s-e: 3090, 3063, 3359.
n-e: 3535, 3359, 3063.
s-w: 3535, 3359, 3063.
n-w: 3090, 3063, 3359.
diagonals 1 ----------->
ne-se: 2934, 3296, 3279.
sw-se: 3038, 3279, 3296.
ne-nw: 3038, 3279, 3296.
sw-nw: 2934, 3296, 3279.
diagonals 2 ----------->
se-sw: 3057, 3117, 3355.
nw-sw: 3264, 3355, 3117.
se-ne: 3264, 3355, 3117.
nw-ne: 3057, 3117, 3355.
------------------------
input: (undo)
------------------------
normal directions ----->
e-s: 5046, 4823, 4664.
w-s: 4452, 4664, 4823.
e-n: 4452, 4823, 4664.
w-n: 5046, 4664, 4823.
rotations ------------->
s-e: 3325, 3414, 3457.
n-e: 3210, 3457, 3414.
s-w: 3210, 3457, 3414.
n-w: 3325, 3414, 3457.
diagonals 1 ----------->
ne-se: 3098, 3069, 3062.
sw-se: 2987, 3062, 3069.
ne-nw: 2987, 3069, 3062.
sw-nw: 3098, 3062, 3069.
diagonals 2 ----------->
se-sw: 2650, 2640, 2695.
nw-sw: 2703, 2695, 2640.
se-ne: 2703, 2640, 2695.
nw-ne: 2650, 2695, 2640.
------------------------
408 redone with my routine:
- Code: Select all
system 1: 3410, 13284
system 2: 6034
system 3: 4272
primary direction, secondary direction: normal, primary direction alternated starting even, uneven.
output: (do)
------------------------
normal directions ----->
e-s: 7384, 6538, 6549.
w-s: 5704, 6549, 6538.
e-n: 5704, 6549, 6538.
w-n: 7384, 6538, 6549.
rotations ------------->
s-e: 3343, 3089, 3134.
n-e: 3430, 3134, 3089.
s-w: 3430, 3134, 3089.
n-w: 3343, 3089, 3134.
diagonals 1 ----------->
ne-se: 3301, 3669, 3721.
sw-se: 3883, 3721, 3669.
ne-nw: 3883, 3721, 3669.
sw-nw: 3301, 3669, 3721.
diagonals 2 ----------->
se-sw: 3566, 3489, 3651.
nw-sw: 3517, 3651, 3489.
se-ne: 3517, 3651, 3489.
nw-ne: 3566, 3489, 3651.
------------------------
input: (undo)
------------------------
normal directions ----->
e-s: 7384, 6538, 6549.
w-s: 5704, 6549, 6538.
e-n: 5704, 6538, 6549.
w-n: 7384, 6549, 6538.
rotations ------------->
s-e: 3371, 3322, 3388.
n-e: 3285, 3388, 3322.
s-w: 3285, 3388, 3322.
n-w: 3371, 3322, 3388.
diagonals 1 ----------->
ne-se: 3551, 3845, 4216.
sw-se: 3734, 4216, 3845.
ne-nw: 3734, 3845, 4216.
sw-nw: 3551, 4216, 3845.
diagonals 2 ----------->
se-sw: 3518, 3363, 3433.
nw-sw: 3403, 3433, 3363.
se-ne: 3403, 3363, 3433.
nw-ne: 3518, 3433, 3363.
------------------------
340 (suspected CHS):
- Code: Select all
system 1: 4033, 13344
system 2: 5475
system 3: 3418
primary direction, secondary direction: normal, primary direction alternated starting even, uneven.
output: (do)
------------------------
normal directions ----->
e-s: 4462, 3997, 4304.
w-s: 4260, 4304, 3997.
e-n: 4260, 4304, 3997.
w-n: 4462, 3997, 4304.
rotations ------------->
s-e: 2977, 3234, 3380.
n-e: 3111, 3380, 3234.
s-w: 3111, 3380, 3234.
n-w: 2977, 3234, 3380.
diagonals 1 ----------->
ne-se: 3092, 3669, 2887.
sw-se: 2893, 2887, 3669.
ne-nw: 2893, 2887, 3669.
sw-nw: 3092, 3669, 2887.
diagonals 2 ----------->
se-sw: 2845, 3041, 3347.
nw-sw: 3377, 3347, 3041.
se-ne: 3377, 3347, 3041.
nw-ne: 2845, 3041, 3347.
------------------------
input: (undo)
------------------------
normal directions ----->
e-s: 4462, 3997, 4304.
w-s: 4260, 4304, 3997.
e-n: 4260, 3997, 4304.
w-n: 4462, 4304, 3997.
rotations ------------->
s-e: 3092, 2969, 3046.
n-e: 3125, 3046, 2969.
s-w: 3125, 3046, 2969.
n-w: 3092, 2969, 3046.
diagonals 1 ----------->
ne-se: 2998, 2969, 2930.
sw-se: 2881, 2930, 2969.
ne-nw: 2881, 2969, 2930.
sw-nw: 2998, 2930, 2969.
diagonals 2 ----------->
se-sw: 3592, 3161, 3502.
nw-sw: 3161, 3502, 3161.
se-ne: 3161, 3161, 3502.
nw-ne: 3592, 3502, 3161.
------------------------
RHS cipher:
mike_c:
- Code: Select all
system 1: 5263, 15604
system 2: 5769
system 3: 3224
primary direction, secondary direction: normal, primary direction alternated starting even, uneven.
output: (do)
------------------------
normal directions ----->
e-s: 3297, 3449, 3404.
w-s: 3398, 3404, 3449.
e-n: 3398, 3404, 3449.
w-n: 3297, 3449, 3404.
rotations ------------->
s-e: 3533, 3093, 3059.
n-e: 3211, 3059, 3093.
s-w: 3211, 3059, 3093.
n-w: 3533, 3093, 3059.
diagonals 1 ----------->
ne-se: 3344, 2978, 3184.
sw-se: 3415, 3184, 2978.
ne-nw: 3415, 3184, 2978.
sw-nw: 3344, 2978, 3184.
diagonals 2 ----------->
se-sw: 3410, 3160, 3447.
nw-sw: 3439, 3447, 3160.
se-ne: 3439, 3447, 3160.
nw-ne: 3410, 3160, 3447.
------------------------
input: (undo)
------------------------
normal directions ----->
e-s: 3297, 3449, 3404.
w-s: 3398, 3404, 3449.
e-n: 3398, 3449, 3404.
w-n: 3297, 3404, 3449.
rotations ------------->
s-e: 3022, 3129, 2993.
n-e: 3135, 2993, 3129.
s-w: 3135, 2993, 3129.
n-w: 3022, 3129, 2993.
diagonals 1 ----------->
ne-se: 3006, 3318, 2991.
sw-se: 3322, 2991, 3318.
ne-nw: 3322, 3318, 2991.
sw-nw: 3006, 2991, 3318.
diagonals 2 ----------->
se-sw: 2904, 3046, 3164.
nw-sw: 3061, 3164, 3046.
se-ne: 3061, 3046, 3164.
nw-ne: 2904, 3164, 3046.
------------------------
Enough with the code boxes already. For CHS there is a significant increase for the non-repeat number in which direction it was encoded also scaling with the amount of symbols, the quality of the mapping and application. Note that for the 408, which has some rows of the 3rd part and has some erros, this number sits at 4692 for a 54 symbol cipher. I generally compare it to the mirrored version of this direction to estabilish the direction in which the CHS was done. For ray_n's cipher this sits at 5046 for a 55 symbol cipher. 7384 for my 408 redone with 63 symbols which uses a perfect symbol distribution over the letters. And for mike_c a RHS cipher 3297. You can see easily see the difference between CHS and RHS now.
Now the 340 comes in at 4462. This is quite low for a 63 CHS symbol cipher as you can see, and for some time I have known that this indicates something. But what? CHS and RHS mixed? Transposition? A two part cipher? A random plaintext?
CHS and RHS mixed is possible but the cipher does not solve.
Some objections versus a straightforward two part cipher, let's compare the IoC of the top and bottom 10 rows of our test ciphers. The IoC relates to the symbol frequencies.
408: 0.0177, 0.0167.
ray_n: 0.0165, 0.0172.
408 redone: 0.0119, 0.0116.
340: 0.0180, 0.0181.
mike_c: 0.0173, 0.0159.
The 340 has almost identical values which is possible, but maybe unlikely, more so, in a two part cipher. My 408 redone is also very close but it is mathematically perfect because it is computer generated CHS using my algorithm. This I would say could be seen as an objection but also something that I will refer back to later on. Another objection is that nether parts on their own have been solved throughout the years. And I have more to back this up.
There is little difference between a CHS or RHS cipher with a random or normal plaintext, there is some bleedthrough going which I have shown in other threads but it is rather small. I could post more tables to show this but I don't want to bloat the topic with this so take my word for it. The reason can be found in the "blurring" analogy.
It will become evident that transposition is likely the cause. But you can do transposition before CHS and after. And since the non-repeat data (4462) is so low for the 340 I'm going under Assumption A: transposition was done after CHS symbol assignment.
Now what I actually only realised just yesterday, is that there is a significant "bump" for some of the non-repeat data for the 340. More specifically these numbers:
in: (do)
diagonals 1 ----------->
ne-se: 3092, 3669, 2887.
sw-se: 2893, 2887, 3669.
ne-nw: 2893, 2887, 3669.
sw-nw: 3092, 3669, 2887.
out: (undo)
diagonals 2 ----------->
se-sw: 3592, 3161, 3502.
nw-sw: 3161, 3502, 3161.
se-ne: 3161, 3161, 3502.
nw-ne: 3592, 3502, 3161.
What does this mean, what could possibly be the relevance of diagonal non-repeat data in suspected right-to-left, top-to-bottom cipher? Look at this new table for the 408 which has the top 10 rows encoded in a nw-ne direction.
- Code: Select all
system 1: 3953, 12387
system 2: 5605
system 3: 3281
primary direction, secondary direction: normal, primary direction alternated starting even, uneven.
output: (do)
------------------------
normal directions ----->
e-s: 4052, 3871, 3783.
w-s: 3988, 3783, 3871.
e-n: 3988, 3783, 3871.
w-n: 4052, 3871, 3783.
rotations ------------->
s-e: 3123, 2926, 2757.
n-e: 2999, 2757, 2926.
s-w: 2999, 2757, 2926.
n-w: 3123, 2926, 2757.
diagonals 1 ----------->
ne-se: 2900, 3119, 3077.
sw-se: 2648, 3077, 3119.
ne-nw: 2648, 3077, 3119.
sw-nw: 2900, 3119, 3077.
diagonals 2 ----------->
se-sw: 2696, 3223, 3293.
nw-sw: 2789, 3293, 3223.
se-ne: 2789, 3293, 3223.
nw-ne: 2696, 3223, 3293.
------------------------
input: (undo)
------------------------
normal directions ----->
e-s: 4052, 3871, 3783.
w-s: 3988, 3783, 3871.
e-n: 3988, 3871, 3783.
w-n: 4052, 3783, 3871.
rotations ------------->
s-e: 3228, 2980, 3200.
n-e: 3127, 3200, 2980.
s-w: 3127, 3200, 2980.
n-w: 3228, 2980, 3200.
diagonals 1 ----------->
ne-se: 2842, 2776, 3046.
sw-se: 2818, 3046, 2776.
ne-nw: 2818, 2776, 3046.
sw-nw: 2842, 3046, 2776.
diagonals 2 ----------->
se-sw: 3284, 3587, 3469.
nw-sw: 3429, 3469, 3587.
se-ne: 3429, 3587, 3469.
nw-ne: 3284, 3469, 3587.
------------------------
Notice that the suspected primary direction has changed from 4692 to 4052 and there is now a significant "bump" in the diagonal data. Especially in the input (undo) section, since that undoes the transposition.
diagonals 2 ----------->
se-sw: 3284, 3587, 3469.
nw-sw: 3429, 3469, 3587.
se-ne: 3429, 3587, 3469.
nw-ne: 3284, 3469, 3587.
Okay, I will post another example but this time for a RHS cipher:
- Code: Select all
system 1: 6645, 17701
system 2: 5757
system 3: 3205
primary direction, secondary direction: normal, primary direction alternated starting even, uneven.
output: (do)
------------------------
normal directions ----->
e-s: 3319, 3164, 3576.
w-s: 3263, 3576, 3164.
e-n: 3263, 3576, 3164.
w-n: 3319, 3164, 3576.
rotations ------------->
s-e: 4062, 2933, 2994.
n-e: 3789, 2994, 2933.
s-w: 3789, 2994, 2933.
n-w: 4062, 2933, 2994.
diagonals 1 ----------->
ne-se: 3327, 2861, 3244.
sw-se: 2914, 3244, 2861.
ne-nw: 2914, 3244, 2861.
sw-nw: 3327, 2861, 3244.
diagonals 2 ----------->
se-sw: 2778, 3150, 3076.
nw-sw: 3169, 3076, 3150.
se-ne: 3169, 3076, 3150.
nw-ne: 2778, 3150, 3076.
------------------------
input: (undo)
------------------------
normal directions ----->
e-s: 3319, 3164, 3576.
w-s: 3263, 3576, 3164.
e-n: 3263, 3164, 3576.
w-n: 3319, 3576, 3164.
rotations ------------->
s-e: 3089, 3282, 3254.
n-e: 3191, 3254, 3282.
s-w: 3191, 3254, 3282.
n-w: 3089, 3282, 3254.
diagonals 1 ----------->
ne-se: 3153, 3286, 3148.
sw-se: 3308, 3148, 3286.
ne-nw: 3308, 3286, 3148.
sw-nw: 3153, 3148, 3286.
diagonals 2 ----------->
se-sw: 2910, 3245, 2977.
nw-sw: 3124, 2977, 3245.
se-ne: 3124, 3245, 2977.
nw-ne: 2910, 2977, 3245.
------------------------
As you can see this cipher has a significant "bump" in the rotation section 4062 versus 3319 in the right-to-left, top-to-bottom direction. So what does this mean? I will show you an example what rotation in this direction does to a cipher.
Rotation s-e, as output:

The different colors indicate the distance from its original position and you can visually see a diagonal shift going on. This actually very much relates to the transposition scheme (after RHS) used in this cipher, which simply swaps symbols: string "ABABABAB" becomes "BABABABA", but since you have 17 columns this cause a diagonal shift of information which represents itself in the data of the non-repeats!
Now let's compare the first top and bottom 10 rows of each test cipher in terms of non-repeats for the right-to-left, top-to-bottom direction and it's mirrored counterpart.
CHS:
408: top: 2275, 2158, bottom: 2101, 2075.
ray_n: top: 2620, 2136, bottom: 2321, 2211.
408 redone: top: 3965, 3053, bottom: 2952, 2550.
340: top: 2084, 2250, bottom: 2273, 1879.
RHS:
mike_c: top: 1566, 1464, bottom: 1699, 1901.
The first number is supposed to be bigger with CHS and the 340 actually manages the other way around for the first part. This strange cipher just keeps on giving. Note that the difference for the second part of the 408 is quite low due to having a couple of rows of the third part which uses RHS.
In some of the code tables I have posted you will see system 1, 2, 3 etc. System 1 measures the distribution of symbols over the grid, more even distributions score lower. Which are expected for CHS. System 2 measures the distance information of the difference of what comes before and after a symbol on average. A smaller difference indicates a more random distribution. System 3 is just the total of the non-repeats divided by the orientations, higher is more in line with CHS.
So how do they compare?
408:
system 1: 3538, 11317
system 2: 5714
system 3: 3351
ray_n:
system 1: 3488, 11518
system 2: 5629
system 3: 3530
408 redone:
system 1: 3410, 13284
system 2: 6034
system 3: 4272
340:
system 1: 4033, 13344
system 2: 5475
system 3: 3418
All 3 ciphers but the 340 have a number of around 3500 for system 1, the 4033 in the 340 is significant and indicates a higher degree of randomness.
System 2 comes up with a lower number for the 340 also indicating a higher degree of randomness.
System 3 for the 340 does not correlate well with the expected numbers of the non-repeats in the right-to-left, top-to-bottom direction.
To some degree the aforementioned "bump" in the diagonal non-repeat data of the 340 also could indicate transposition rather than a mix of RHS and CHS. Okay, now yesterday I also have discovered something really strange which seems to have a strong correlation with the "bump".
Comparing test cipher data for the non-repeat data for the following sets: symbols that sit on an even position, symbols that sit on an uneven position.
408: even: 2319, 2005, uneven: 1837, 1871.
ray_n: even: 2467, 1780, uneven: 1957, 1758.
408 redone: even: 3014, 2491, uneven: 2949, 2504.
340: even: 1706, 1795, uneven: 2129, 2129.
For CHS the first number should be bigger. Now, it has to noted that the uneven numbers for the 408 are not what they should be and it persists throughout the cipher. But for the 340 the data is even stranger, for even the second number is bigger and for uneven they are equal. But in total the 340 is: 4462, 4260. Now consider the following example for which I leave out every symbol that falls on a multiple of 3 (every 3rd symbol).
340: 2804, 2334.
Where does this big difference comes from all of a sudden? Can the cipher get any stranger?
Look how it possibly relates to the pivots (discovered by doranchak) in the next image, suggested by travellerst1st. but I made the same discovery in relation to the data yesterday w/o being aware of his work on this: viewtopic.php?f=81&t=964&hilit=diagonal

Now 1 + 1 being 2 this could very well explain the "bump" in the diagonals of the non-repeats. But how to make sense of the data? If in terms of the non-repeat data the symbols on even positions seems flat, not have a clear indication of direction, and the symbols at uneven positions as well. Then you could suggest that 2 data streams are running through eachother, one normal and one reversed, both streams spread out evenly between even and uneven positions. But that does not explain the clear indication of direction becoming apparant after removing symbols that fall on every third character!
Furthermore, is the uncanny similarity in IoC for the top and bottom 10 rows of the 340 additional indication of 2 seperate streams, or some mixing going on? The diagonal "bump", the non-repeat data for symbols at positions, even, uneven and multiples of 3, and the similarity of the IoC between the first and second part. I feel like it is all connected somehow.





