Tool to decrypt messages according to Trevanion cipher/code, depending on the position of the letters and the punctuation.
Trevanion Cipher - dCode
Tag(s) : Steganography
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!
The Trevanion code is a principle of steganography based on the position of punctuation characters in a text relative to the surrounding letters.
Encryption involves taking a text and be pay attention to position of the punctuation so that after each sign (comma, dot, period, semicolon, exclamation mark, question mark, etc.), after counting a number of letters (eg 3 letters) a letter from the hidden message is found.
Example: In the sentence Wow! How did he do? Incredible! Did you see that? Exact position. the letters directly following each ponctuation sign are: H,I,D,E which is the hidden message.
Decryption requires knowing the shift N used.
To find the plain text it is necessary to browse the text in search of the signs of punctuation. After each one, count a number of characters (N) to find a new letter of the plaintext.
Example: This website, I admit, is cool! Prodigious tools, so dazzling things here. Great job!
Example: With N=3, The original plain text is DCODE.
The message, if well done, is theoretically impossible to recognize.
dCode can attempt the most classic combinations, different shifts and modes.
It is possible to set the trigger characters, eg. to use characters other than the classical punctuation.
The method for calculating the offset may be different for each person, some will count for all characters, others will treat only letters.
Example: `GO! ATTACK!' has for 3rd letter A, for 4th character _ (space) or ! (if space is ignored).
17th century but the author is probably not John Trevanion. The name of this code was given in honor of John Trevanion, an Englishman, a prisoner who received a letter from a friend using this principle. But historians have found inconsistencies in this story and its authenticity is called into question.
dCode retains ownership of the "Trevanion Cipher" source code. Any algorithm for the "Trevanion Cipher" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Trevanion Cipher" 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 "Trevanion Cipher" 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 "Trevanion Cipher" 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: Trevanion Cipher on dCode.fr [online website], retrieved on 2025-04-16,