Tools to decrypt/encrypt with double transposition cipher, as its names indicates, it uses two transposition ciphers, with one or two keys, and applied on lines or columns or both.

Double Transposition Cipher - dCode

Tag(s) : Cryptography, Transposition Cipher

dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day!

You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? *Contact-me*!

Sponsored ads

Tools to decrypt/encrypt with double transposition cipher, as its names indicates, it uses two transposition ciphers, with one or two keys, and applied on lines or columns or both.

Encryption uses twice a transposition cipher, usually the first transposition is in columns, and the second in lines.

Example: Encrypt DCODE with twice the key KEY

D | C | O |

D | E | X |

Example: The grid is filled with X and permutated a first time

C | D | O |

E | D | X |

Example: The intermediate ciphered message is CDOEDX. Make a second transposition, but with lines

\ | 1 | 2 |
---|---|---|

K | C | D |

E | O | E |

Y | D | X |

Example: The grid becomes, after the second permutation

\ | 1 | 2 |
---|---|---|

E | O | E |

K | C | D |

Y | D | X |

The ciphertext is then obtained by reading the grid in lines, from left to right and from top to bottom.

Example: The ciphered message is then OECDDX

Decryption requires to know both keys and the kind of transposition used for each (line or column)

Example: The crypted message is OECDDX, transposed with 1 column transposition and 1 line transposition with two identical keys : KEY.

The crypted message gets two reversed transposition, in the opposite order of the original order, to get back the plain text.

Example: Si the grid is

\ | 1 | 2 |
---|---|---|

E | O | E |

K | C | D |

Y | D | X |

Example: It becomes, avec a first reversed permutation in lines

\ | 1 | 2 |
---|---|---|

K | C | D |

E | O | E |

Y | D | X |

Example: The intermediate message is then CDOECX, it gets another reversed permutation, in column

C | D | O |

E | D | X |

Example: The grid becomes

D | C | O |

D | E | X |

Example: The original plain text is DCODEX.

A message encrypted by Double Transposition has a frequency analysis and a coincidence index normal.

The number of letters in the message is not a prime number.

It is possible to find the key length by analyzing the prime decomposition of the text length.

By writing the text in the grid, permute the columns in order to find words on each lines, beginning with common bigrams (such as TH, HE, IN, etc.).

To find the second permutation, it is easier, because lines are already in plain text.

It is possible to shuffle lines or columns in the desired order.

No date of known author.

dCode retains ownership of the source code of the script Double Transposition Cipher online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be given for free. So if you need to download the online Double Transposition Cipher script for offline use, check contact page !

transposition,double,key,two,permutation,combination,line,column,grid,anagram,disorder

Source : https://www.dcode.fr/double-transposition-cipher

© 2018 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaches. dCode