Jump to content

Talk:ADFGVX cipher: Difference between revisions

m
(Ambiguous handling of rows with less than keyword chars elements)
 
Line 2:
It doesn't seem to be spelled out specifically anywhere. How should we handle ending rows with fewer elements than the number of characters in the key word? If you look at the [[wp:ADFGVX_cipher#Operation|wikipedia page under "Operation"]] the keyword is CARGO (5 letters), the message has 12 letters, resulting in 24 elements. When the columns are rearranged, the R column [AFAFX] goes to the end, and the O column [AFAX] moves 1 space to the left. But the last element of the R column [X] gets shifted over to fill the gap; so now O is [AFAXX] and R is [AFAF].
 
I choose to follow the wikipedia example and shift to fill any gaps after rearranging columns. The order can be recovered by simply compressing the last row to the left after reshuffling. See the Raku example. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 17:43, 16 August 2021 (UTC)
 
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)
10,327

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.