Tool to decrypt/encrypt with Caesar Box, a Roman version of the scytales for ciphering text by transposition.
Caesar Box 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!
Caesar Box is a transposition cipher used in the Roman Empire, in which letters of the message are written in rows in a square (or a rectangle) and then, read by column.
To encode a message with Caesar's Box (Encryption Principle):
— Determine the size of the square (or the lengths of the sides of the rectangle). For a square, take the square root of the total number of characters.
NB: In practice, only the width of the square or rectangle matters (because it determines the number of columns)
Example: Encrypt the message DCODE in a rectangle of width 3
— Fill the square row by row with the letters of the message. If the number of characters is not a perfect square, add padding characters to complete.
Example: DCODE is cut every 3 characters and forms a rectangle (adding the character _):
D | C | O |
D | E | _ |
— Read the text column by column to form the encrypted text.
Example: The encrypted message is therefore DDCEO_
Deciphering Caesar's Box is done in 3 steps: (Deciphering principle)
— Know or determine the size of the square/rectangle.
Example: The encrypted message CSAAER is 6 characters long, 6 is not a perfect square number, so the message was encrypted in a 3x2 (or 2x3) rectangle.
— Fill the square column by column with the encrypted text.
Example: Writing in columns gives
C | A | E |
S | A | R |
— Read the message line by line to find the original text
Example: The plain message is CAESAR.
Caesar's box is a transposition cipher, its coincidence index is the same as that of the plaintext.
If a square grid is used, then the length of the message is a perfect square (4, 16, 25, 36, 49, 64, 72, 100, 121, 144, etc.)
This cipher appears in many movies or books like in Journey to the Center of the Earth by Jules Verne (cryptogram by Arne Saknussemm), etc.
When a square grid is used the encryption and decryption functions are identical.
dCode's Brute-force function will determine the possible sizes of the square/rectangle based on the length of the message and attempt to find the plain message.
If the message has a perfect square number of characters, taking the root of it allows you to deduce the size of the square.
Scytale is another name for this cipher (scytale is a parchment/ribbon).
It is possible to encrypt a message that contains spaces or punctuation, but it is important to note the possible presence of multiple spaces by making them distinct.
Matrix transposition is the mathematical operation corresponding to this cipher.
This encryption is identical to that of the scytale cipher, which have appeared in Greece (Sparta), between the 10th and 7th centuries B.C., a long time before romans and Caesar (Caius Iulius).
dCode retains ownership of the "Caesar Box Cipher" source code. Except explicit open source licence (indicated Creative Commons / free), the "Caesar Box Cipher" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Caesar Box 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 "Caesar Box 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 "Caesar Box 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):
Caesar Box Cipher on dCode.fr [online website], retrieved on 2024-12-21,