Tool to write/read a spiral cipher. The spiral encryption/writing system consists to write a text in a quadrangular spiral and read it by lines or columns.
Spiral 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!
Only works with odd sized spirals! Sorry (work is progress)
Only works with odd sized spirals! Sorry (work is progress)
Spiral writing is a way of writing text not from left to right, but in a spiral (usually following a rectangular grid) with a predefined direction of rotation. This writing can be similar to a cipher by transposition, since the text is read differently, such as from left to right.
To encrypt a message by spiral writing, imagine a quadrangular spiral (written in a square). Then write the message by turning like a spiral/snail.
Example: Code SPIRALS99 via an inner spiral from the top left, clockwise direction:
S | P | I |
9 | 9 | R |
S | L | A |
Example: Code CYCLONIC! via an outer spiral from below, trigonometric rotation:
I | N | O |
C | C | L |
! | Y | C |
If the spiral does not end exactly, it is possible to add any character, like X (avoid spaces because invisible).
The final encrypted message is generally constituted by a reading in rows or columns of the grid obtained.
Example: The ciphertext is S9SP9LIRA (example 1) or IC!NCYOLC (example 2)
Decryption is writing the message in rows or in columns and reading the text in a spiral. It is necessary to know the mode of writing (inward or outward, trigonometric direction or clockwise, etc.)
Example: RNOOSITAT written in rows in a square grid becomes
R | N | O |
O | S | I |
T | A | T |
a spiral reading gives the plain message ROTATIONS.
Since spiral encryption is a transposition cipher, the coincidence index of the text is the same of the original plain message language.
Sometimes a word or text is formed on one or all of the lines created, the word can be written backwards.
Ideally the encrypted message has a number of square characters (whose square root is an integer: 9, 16, 25, 36 etc.)
Any reference to a vortex, cyclone, spiral, or anything rotating is a clue.
The variants of the spiral writing reside in the text writing (internal or external spiral) and direction (clockwise or counterclockwise spiral), but also in reading the text (line, column or even starting from the end)
It also possible to use another pattern than a spiral, see route cipher.
dCode retains ownership of the "Spiral Cipher" source code. Except explicit open source licence (indicated Creative Commons / free), the "Spiral Cipher" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Spiral Cipher" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "Spiral Cipher" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.
The copy-paste of the page "Spiral Cipher" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Spiral Cipher on dCode.fr [online website], retrieved on 2024-12-21,