Talk:ADFGVX cipher: Difference between revisions

comment
No edit summary
(comment)
Line 6:
It is not strictly necessary to do so, but ''not'' doing it significantly weakens the effectiveness of the encryption. It is a strong hint to the relative order of the columns. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 17:43, 16 August 2021 (UTC)
 
:There are two ways to proceed in this case. They are explained in the Wikipedia article which describes column transposition: https://en.wikipedia.org/wiki/Transposition_cipher#Columnar_transposition. We can fill the missing elements with random characters or accept to deal with incomplete columns. The Wikipedia example uses the second solution. This is also what I have done in the Nim solution. --[[User:Lscrd|lscrd]] ([[User talk:Lscrd|talk]]) 18:02, 16 August 2021 (UTC)
 
:: That is also what '''I''' have chosen to do; but I did it in a way that doesn't inherently weaken the encryption. Any incomplete rows are compressed left after shuffling; then, when reshuffling to decode, again, any incomplete rows ares compressed left. This removes any hint about which columns come earlier and which come later without needing to generate and remove noise filler characters. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 18:12, 16 August 2021 (UTC)
10,327

edits