Tool to write text as a route. Route cipher is a transposition cipher method which consists in reading letters in a text according to a predifined route/path, as a serpentine road.
Route/Path Cipher - dCode
Tag(s) : Transposition Cipher
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Tool to write text as a route. Route cipher is a transposition cipher method which consists in reading letters in a text according to a predifined route/path, as a serpentine road.
Route cipher encryption consists of writing the text following a path/route often using laces (or serpentines). This type of writing is adapted to the use of a grid because it can be written on N columns, the first from top to bottom then the second from bottom to top and so on.
Example: The text DCODEROUTE, on a grid of height 3 read by row becomes DRO-CEU-ODTE
\ | 1 | 2 | 3 | 4 |
---|---|---|---|---|
1 | D | R | O | - |
2 | C | E | U | - |
3 | O | D | T | E |
If the message does not fill the grid, add a character like - to end the column/row.
Decryption requires knowing the path (or at least the size of the grid) in order to write the letters of the message.
Example: The encrypted text PIN-AFD-THER on a grid of height 3 is written as
\ | 1 | 2 | 3 | 4 |
---|---|---|---|---|
1 | P | I | N | - |
2 | A | F | D | - |
3 | T | H | E | R |
Column reading according to the path returns the original text.
Example: The grid path reading returns PATHFINDER
The message has a coincidence index similar to that of the plain language because it is a transposition.
The number of characters is a multiple of the width and height of the grid (and therefore can not be a prime number).
The best method is to try diffrent sizes and try to see if the beginning of the message is readable. dCode allow testing multiple possibilities automatically in order to detect the most probable.
On a grid of a given size, it is possible to write the text in the path of at least 8 (classical) ways (there are 2 possible directions for each of the 4 corners). Then reading can be a path too.
It is possible to imagine any type of path for letters, such as a spiral script. Another variant is Caesar box cipher.
dCode retains ownership of the online 'Route/Path Cipher' tool source code. Except explicit open source licence (indicated CC / Creative Commons / free), any algorithm, applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (PHP, Java, C#, Python, Javascript, Matlab, etc.) no data, script, copy-paste, or API access will be for free, same for Route/Path Cipher download for offline use on PC, tablet, iPhone or Android !
Please, check our community Discord for help requests!