Search for a tool
Trevanion Cipher

Tool to decrypt messages according to Trevanion cipher/code, depending on the position of the letters and the punctuation.

Results

Trevanion Cipher -

Tag(s) : Steganography

Share
Share
dCode and more

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!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Trevanion Cipher' tool for free! Thank you!

Trevanion Cipher

Trevanion Decoder

 

Trigger/Mark Options



Extraction of Characters Options

 



Answers to Questions (FAQ)

What is Trevanion's code? (Definition)

The Trevanion code is a principle of steganography based on the position of punctuation characters in a text relative to the surrounding letters.

How to encrypt using Trevanion method?

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.

How to decrypt Trevanion cipher?

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.

How to recognize Trevanion ciphertext?

The message, if well done, is theoretically impossible to recognize.

How to decipher Trevanion without knowing the parameters?

dCode can attempt the most classic combinations, different shifts and modes.

What are the variants of the Trevanion cipher?

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).

When was Trevanion invented?

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.

Source code

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.

Cite dCode

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: https://www.dcode.fr/trevanion-cipher
In a scientific article or book, the recommended bibliographic citation is: Trevanion Cipher on dCode.fr [online website], retrieved on 2025-04-16, https://www.dcode.fr/trevanion-cipher

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Trevanion Cipher' tool for free! Thank you!


https://www.dcode.fr/trevanion-cipher
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback