Search for a tool
Triliteral Cipher

Tool to decrypt/encrypt Triliteral automatically. Triliteral cipher uses a triliteral alphabet which aims to replace letters by triples of three letters, generally A, B and C

Results

Triliteral Cipher -

Tag(s) : Substitution Cipher

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 'Triliteral Cipher' tool for free! Thank you!

Triliteral Cipher

Triliteral Cipher Decoder

 



See also: Bacon Cipher

Triliteral Cipher Encoder

 





See also: Bacon Cipher

Answers to Questions (FAQ)

What is a Triliteral cipher? (Definition)

A triliteral cipher (also called ternary or trifid) is a substitution cipher where each letter or symbol in the plaintext message is replaced by a triplet of symbols.

The term triliteral means that the cipher uses three elements (3 letters) to represent a unit of information.

How to encrypt using Triliteral cipher?

To encode with a triliteral cipher, follow these steps:

— Define a substitution alphabet (see below) so that each letter of the plaintext is associated with a triplet of symbols.

— Encode DCODE with the alphabet A=AAA, B=AAB, C=AAC, D=ABA, etc.

— Replace each letter of the plaintext with its corresponding triplet.

— The message is encrypted as: ABA AAC BBC ABA ABB

What are the most common triliteral alphabets?

Base 3 (space ⌴ at the end = CCC):

AAAABAABCAACDABAEABBFABCGACAHACBIACC
JBAAKBABLBACMBBANBBBOBBCPBCAQBCBRBCC
SCAATCABUCACVCBAWCBBXCBCYCCAZCCB⌴CCC

Base 3 (space ⌴ at the beginning = AAA):

⌴AAAAAABBAACCABADABBEABCFACAGACBHACC
IBAAJBABKBACLBBAMBBBNBBCOBCAPBCBQBCC
RCAASCABTCACUCBAVCBBWBCBXCCAYCCBZCCC

Frederici:

AAABBAACCABADABBEABCFACAGACBHACCIBBA
JBBAKBBCLBABMBAANBACOBCBPBCAQBCCRCCA
SCCBTCACUCAAVCAAWCABXCBCYCBAZCBB

Cardan:

AAACBAABCACADACCEACBFABAGABCHCACIABB
JABBKCABLCAAMCCANCCBOCBAPCBCQCBBRBAA
SCCCTBACUBABVBABWBABXBCAYBCCZBCB

Vigenere:

ABBABBAACBACDAAAEAACFAABGACAHACCIACB
JACBKABALABCMABBNCCCOCCAPCCBQCAARCAC
SCABTCBAUCBCVCBCWCBCXCBBYBBBZBCB

Wilkins:

AAAABAABCAACDBAAEBBAFBBBGBBCHCAAICCA
JCCAKCCBLCCCMABANABBOABCPACAQACBRACC
SBCATBCBUBCCVBCCWBABXCBAYCBBZCBC

Some sources present Wilkins' alphabet with different trigrams.

How to decrypt Triliteral cipher?

To decode a triliteral ciphertext:

— Segment the ciphertext into triplets of 3 characters

Example: The message to be decrypted ABAAACBBCABAABB is segmented into ABA,AAC,BBC,ABA,ABB

— Replace each triplet with its corresponding letter in the substitution alphabet to reconstruct the plaintext

Example: Using the alphabet A=AAA, B=AAB, C=AAC, D=ABA, etc. The plaintext is DCODE.

How to decipher Triliteral without knowing the alphabet?

If the substitution alphabet is unknown, it is possible to transform the ciphertext into a monoalphabetic substitution by grouping triplets and analyzing their frequency.

The ciphertext then becomes a monoalphabetic substitution, and if the ciphertext is long enough, decryption is possible.

How to recognize triliteral ciphertext?

The ciphered message has 3 distinct characters equally distributed. It is usually the 3 letters A, B and C but it can be 3 numbers, or 3 different things.

Like a Bacon cipher, it is possible to hide a Triliteral cipher in a text, for example by alternating 3 fonts, or variations of letters: uppercase, lowercase, bold, italic, underlined, etc.

All notions of triplet, number 3, triple, words trifid, triliteral, tricode, triletter, tridigital, etc. are clues.

What are the 27 combinations of the Triliteral Alphabet?

The list of permutations with repetition of 3 characters A, B and C is: AAA, AAB, AAC, ABA, ABB, ABC, ACA, ACB, ACC, BAA, BAB, BAC, BBA, BBB, BBC, BCA, BCB, BCC, CAA, CAB, CAC, CBA, CBB, CBC, CCA, CCB, CCC

These combinations allow for the representation of up to 27 different characters.

When was the Triliteral cipher invented?

The first triliteral alphabet appeared between 1550 and 1650.

Source code

dCode retains ownership of the "Triliteral Cipher" source code. Any algorithm for the "Triliteral Cipher" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Triliteral 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 "Triliteral Cipher" or any other element are not public (except explicit open source licence). 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 "Triliteral Cipher" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).

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/triliteral-cipher

In a scientific article or book, the recommended bibliographic citation is: Triliteral Cipher on dCode.fr [online website], retrieved on 2025-12-07, https://www.dcode.fr/triliteral-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 'Triliteral Cipher' tool for free! Thank you!


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