Tool to decrypt/encrypt with a cardan grille. The Cardan grille is a mask superimposed to the text that bring up some letters to make a message.
Cardan Grille - dCode
Tag(s) : Substitution 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!
Cardan encryption uses another text (understandable or not) of which only a few letters are from the original text.
In practice, Cardan uses a mask, a grille in which some cells are opaque, others empty.
Example: Code DCODE with the mask XXXXXX_XXXXXX_XXX_X_XXXXX_XXXX where X is an opaque cell and _ an empty one.
Superimpose the mask cover, write the text in the empty boxes, remove this cover and fill the rest with random letters.
Example: DCODE is written in empty cells XXXXXXDXXXXXXCXXXOXDXXXXXEXXXX and it is possible to fill with letters like OZPCESDVIDGABCNTEOHDERXJXEMLUE
Cardan decryption requires knowledge of the grille. The decrypted text appears by placing the cover on the text.
Example:
OESDVBCNEOHDEEML |
XXX_XX_XX_X_X_XX |
XXXDXXCXXOXDXEXX |
___D__C__O_D_E__ |
The encrypted message is very long compared to original plain text.
Cardinal Richelieu encrypted his messages in the same way, but the ciphertext took the classical form of a common text. The secret message consisted of only a few of the letters of the message that were revealed with the cache. Any reference to Cardinal Richelieu can be a clue.
The decryption without grille is very difficult, one should try all the grids.
Using a probable word, it is possible to estimate the coverage mask and know the amount of letters to ignore.
Cardan is the name of Jérome Cardan (Gerolamo Cardano) its italian creator.
dCode retains ownership of the "Cardan Grille" source code. Any algorithm for the "Cardan Grille" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Cardan Grille" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Cardan Grille" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Cardan Grille" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Cardan Grille on dCode.fr [online website], retrieved on 2025-04-16,