[{"data":1,"prerenderedAt":860},["ShallowReactive",2],{"navigation_docs":3,"-ciphers-trifid":356,"-ciphers-trifid-surround":855},[4,36],{"title":5,"path":6,"stem":7,"children":8,"icon":35},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19,23,27,31],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Encode and decode","\u002Fguide\u002Ftransform","1.guide\u002F02.transform",{"title":16,"path":17,"stem":18},"Analysis","\u002Fguide\u002Fanalysis","1.guide\u002F03.analysis",{"title":20,"path":21,"stem":22},"CLI","\u002Fguide\u002Fcli","1.guide\u002F04.cli",{"title":24,"path":25,"stem":26},"Agents","\u002Fguide\u002Fagents","1.guide\u002F05.agents",{"title":28,"path":29,"stem":30},"Custom ciphers","\u002Fguide\u002Fcustom","1.guide\u002F06.custom",{"title":32,"path":33,"stem":34},"Playground","\u002Fguide\u002Fplayground","1.guide\u002F07.playground","i-lucide-book-open",{"title":37,"path":38,"stem":39,"children":40,"icon":355},"Ciphers","\u002Fciphers","2.ciphers\u002F00.index",[41,43,47,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175,179,183,187,191,195,199,203,207,211,215,219,223,227,231,235,239,243,247,251,255,259,263,267,271,275,279,283,287,291,295,299,303,307,311,315,319,323,327,331,335,339,343,347,351],{"title":42,"path":38,"stem":39},"Overview",{"title":44,"path":45,"stem":46},"Classical","\u002Fciphers\u002Fclassical","2.ciphers\u002F01.classical",{"title":48,"path":49,"stem":50},"Caesar","\u002Fciphers\u002Fcaesar","2.ciphers\u002F02.caesar",{"title":52,"path":53,"stem":54},"ROT-13","\u002Fciphers\u002Frot13","2.ciphers\u002F03.rot13",{"title":56,"path":57,"stem":58},"ROT-47","\u002Fciphers\u002Frot47","2.ciphers\u002F04.rot47",{"title":60,"path":61,"stem":62},"Atbash","\u002Fciphers\u002Fatbash","2.ciphers\u002F05.atbash",{"title":64,"path":65,"stem":66},"Affine","\u002Fciphers\u002Faffine","2.ciphers\u002F06.affine",{"title":68,"path":69,"stem":70},"Substitution","\u002Fciphers\u002Fsubstitution","2.ciphers\u002F07.substitution",{"title":72,"path":73,"stem":74},"Vigenère","\u002Fciphers\u002Fvigenere","2.ciphers\u002F08.vigenere",{"title":76,"path":77,"stem":78},"Gronsfeld","\u002Fciphers\u002Fgronsfeld","2.ciphers\u002F09.gronsfeld",{"title":80,"path":81,"stem":82},"Beaufort","\u002Fciphers\u002Fbeaufort","2.ciphers\u002F10.beaufort",{"title":84,"path":85,"stem":86},"Porta","\u002Fciphers\u002Fporta","2.ciphers\u002F11.porta",{"title":88,"path":89,"stem":90},"Autokey","\u002Fciphers\u002Fautokey","2.ciphers\u002F12.autokey",{"title":92,"path":93,"stem":94},"Running key","\u002Fciphers\u002Frunning-key","2.ciphers\u002F13.running-key",{"title":96,"path":97,"stem":98},"Trithemius","\u002Fciphers\u002Ftrithemius","2.ciphers\u002F14.trithemius",{"title":100,"path":101,"stem":102},"Alberti","\u002Fciphers\u002Falberti","2.ciphers\u002F15.alberti",{"title":104,"path":105,"stem":106},"Quagmire I","\u002Fciphers\u002Fquagmire-1","2.ciphers\u002F16.quagmire-1",{"title":108,"path":109,"stem":110},"Quagmire II","\u002Fciphers\u002Fquagmire-2","2.ciphers\u002F17.quagmire-2",{"title":112,"path":113,"stem":114},"Quagmire III","\u002Fciphers\u002Fquagmire-3","2.ciphers\u002F18.quagmire-3",{"title":116,"path":117,"stem":118},"Quagmire IV","\u002Fciphers\u002Fquagmire-4","2.ciphers\u002F19.quagmire-4",{"title":120,"path":121,"stem":122},"Chaocipher","\u002Fciphers\u002Fchaocipher","2.ciphers\u002F20.chaocipher",{"title":124,"path":125,"stem":126},"Playfair","\u002Fciphers\u002Fplayfair","2.ciphers\u002F21.playfair",{"title":128,"path":129,"stem":130},"Four-square","\u002Fciphers\u002Ffour-square","2.ciphers\u002F22.four-square",{"title":132,"path":133,"stem":134},"Two-square","\u002Fciphers\u002Ftwo-square","2.ciphers\u002F23.two-square",{"title":136,"path":137,"stem":138},"Hill","\u002Fciphers\u002Fhill","2.ciphers\u002F24.hill",{"title":140,"path":141,"stem":142},"Polybius square","\u002Fciphers\u002Fpolybius","2.ciphers\u002F25.polybius",{"title":144,"path":145,"stem":146},"Nihilist","\u002Fciphers\u002Fnihilist","2.ciphers\u002F26.nihilist",{"title":148,"path":149,"stem":150},"Morse code","\u002Fciphers\u002Fmorse","2.ciphers\u002F27.morse",{"title":152,"path":153,"stem":154},"Fractionated Morse","\u002Fciphers\u002Ffractionated-morse","2.ciphers\u002F28.fractionated-morse",{"title":156,"path":157,"stem":158},"Bacon's cipher","\u002Fciphers\u002Fbacon","2.ciphers\u002F29.bacon",{"title":160,"path":161,"stem":162},"Tap code","\u002Fciphers\u002Ftap-code","2.ciphers\u002F30.tap-code",{"title":164,"path":165,"stem":166},"A1Z26","\u002Fciphers\u002Fa1z26","2.ciphers\u002F31.a1z26",{"title":168,"path":169,"stem":170},"Book cipher","\u002Fciphers\u002Fbook","2.ciphers\u002F32.book",{"title":172,"path":173,"stem":174},"ADFGVX","\u002Fciphers\u002Fadfgvx","2.ciphers\u002F33.adfgvx",{"title":176,"path":177,"stem":178},"Bifid","\u002Fciphers\u002Fbifid","2.ciphers\u002F34.bifid",{"title":180,"path":181,"stem":182},"Trifid","\u002Fciphers\u002Ftrifid","2.ciphers\u002F35.trifid",{"title":184,"path":185,"stem":186},"Straddling checkerboard","\u002Fciphers\u002Fstraddling-checkerboard","2.ciphers\u002F36.straddling-checkerboard",{"title":188,"path":189,"stem":190},"Tridigital","\u002Fciphers\u002Ftridigital","2.ciphers\u002F37.tridigital",{"title":192,"path":193,"stem":194},"Rail fence","\u002Fciphers\u002Frail-fence","2.ciphers\u002F38.rail-fence",{"title":196,"path":197,"stem":198},"Columnar transposition","\u002Fciphers\u002Fcolumnar","2.ciphers\u002F39.columnar",{"title":200,"path":201,"stem":202},"Route transposition","\u002Fciphers\u002Froute","2.ciphers\u002F40.route",{"title":204,"path":205,"stem":206},"Enigma M3","\u002Fciphers\u002Fenigma","2.ciphers\u002F41.enigma",{"title":208,"path":209,"stem":210},"Block","\u002Fciphers\u002Fblock","2.ciphers\u002F42.block",{"title":212,"path":213,"stem":214},"AES (ECB)","\u002Fciphers\u002Faes","2.ciphers\u002F43.aes",{"title":216,"path":217,"stem":218},"AES (CBC)","\u002Fciphers\u002Faes-cbc","2.ciphers\u002F44.aes-cbc",{"title":220,"path":221,"stem":222},"AES (CFB)","\u002Fciphers\u002Faes-cfb","2.ciphers\u002F45.aes-cfb",{"title":224,"path":225,"stem":226},"AES (OFB)","\u002Fciphers\u002Faes-ofb","2.ciphers\u002F46.aes-ofb",{"title":228,"path":229,"stem":230},"AES (CTR)","\u002Fciphers\u002Faes-ctr","2.ciphers\u002F47.aes-ctr",{"title":232,"path":233,"stem":234},"AES (CCM)","\u002Fciphers\u002Faes-ccm","2.ciphers\u002F48.aes-ccm",{"title":236,"path":237,"stem":238},"AES (OCB)","\u002Fciphers\u002Faes-ocb","2.ciphers\u002F49.aes-ocb",{"title":240,"path":241,"stem":242},"AES (LRW)","\u002Fciphers\u002Faes-lrw","2.ciphers\u002F50.aes-lrw",{"title":244,"path":245,"stem":246},"AES (XTS)","\u002Fciphers\u002Faes-xts","2.ciphers\u002F51.aes-xts",{"title":248,"path":249,"stem":250},"AES (CBC-MAC)","\u002Fciphers\u002Faes-cbc-mac","2.ciphers\u002F52.aes-cbc-mac",{"title":252,"path":253,"stem":254},"AES (passphrase)","\u002Fciphers\u002Faes-passphrase","2.ciphers\u002F53.aes-passphrase",{"title":256,"path":257,"stem":258},"Rijndael (ECB)","\u002Fciphers\u002Frijndael","2.ciphers\u002F54.rijndael",{"title":260,"path":261,"stem":262},"DES (ECB)","\u002Fciphers\u002Fdes","2.ciphers\u002F55.des",{"title":264,"path":265,"stem":266},"DESX (ECB)","\u002Fciphers\u002Fdesx","2.ciphers\u002F56.desx",{"title":268,"path":269,"stem":270},"Triple DES (ECB)","\u002Fciphers\u002Ftriple-des","2.ciphers\u002F57.triple-des",{"title":272,"path":273,"stem":274},"Triple DES (CBC)","\u002Fciphers\u002Ftriple-des-cbc","2.ciphers\u002F58.triple-des-cbc",{"title":276,"path":277,"stem":278},"Blowfish (ECB)","\u002Fciphers\u002Fblowfish","2.ciphers\u002F59.blowfish",{"title":280,"path":281,"stem":282},"IDEA (ECB)","\u002Fciphers\u002Fidea","2.ciphers\u002F60.idea",{"title":284,"path":285,"stem":286},"Lucifer (ECB)","\u002Fciphers\u002Flucifer","2.ciphers\u002F61.lucifer",{"title":288,"path":289,"stem":290},"MARS (ECB)","\u002Fciphers\u002Fmars","2.ciphers\u002F62.mars",{"title":292,"path":293,"stem":294},"Serpent (ECB)","\u002Fciphers\u002Fserpent","2.ciphers\u002F63.serpent",{"title":296,"path":297,"stem":298},"CAST5 (ECB)","\u002Fciphers\u002Fcast5","2.ciphers\u002F64.cast5",{"title":300,"path":301,"stem":302},"Camellia (ECB)","\u002Fciphers\u002Fcamellia","2.ciphers\u002F65.camellia",{"title":304,"path":305,"stem":306},"ARIA (ECB)","\u002Fciphers\u002Faria","2.ciphers\u002F66.aria",{"title":308,"path":309,"stem":310},"SM4 (ECB)","\u002Fciphers\u002Fsm4","2.ciphers\u002F67.sm4",{"title":312,"path":313,"stem":314},"OpenPGP (passphrase)","\u002Fciphers\u002Fopenpgp","2.ciphers\u002F68.openpgp",{"title":316,"path":317,"stem":318},"Stream","\u002Fciphers\u002Fstream","2.ciphers\u002F69.stream",{"title":320,"path":321,"stem":322},"Rabbit","\u002Fciphers\u002Frabbit","2.ciphers\u002F70.rabbit",{"title":324,"path":325,"stem":326},"RC4","\u002Fciphers\u002Frc4","2.ciphers\u002F71.rc4",{"title":328,"path":329,"stem":330},"XOR","\u002Fciphers\u002Fxor","2.ciphers\u002F72.xor",{"title":332,"path":333,"stem":334},"Salsa20","\u002Fciphers\u002Fsalsa20","2.ciphers\u002F73.salsa20",{"title":336,"path":337,"stem":338},"ChaCha20","\u002Fciphers\u002Fchacha20","2.ciphers\u002F74.chacha20",{"title":340,"path":341,"stem":342},"XSalsa20","\u002Fciphers\u002Fxsalsa20","2.ciphers\u002F74.xsalsa20",{"title":344,"path":345,"stem":346},"XChaCha20","\u002Fciphers\u002Fxchacha20","2.ciphers\u002F75.xchacha20",{"title":348,"path":349,"stem":350},"ChaCha20-Poly1305","\u002Fciphers\u002Fchacha20-poly1305","2.ciphers\u002F76.chacha20-poly1305",{"title":352,"path":353,"stem":354},"ZipCrypto","\u002Fciphers\u002Fzipcrypto","2.ciphers\u002F77.zipcrypto","i-lucide-library",{"id":357,"title":180,"body":358,"description":849,"extension":850,"links":851,"meta":852,"navigation":419,"path":181,"seo":853,"stem":182,"__hash__":854},"docs\u002F2.ciphers\u002F35.trifid.md",{"type":359,"value":360,"toc":840},"minimark",[361,365,374,503,508,516,519,522,533,541,544,548,563,566,569,573,590,597,607,611,617,624,627,631,641,645,655,667,741,747,750,753,785,798,802,819,822,836],[362,363],"cipher-facts",{"name":364},"trifid",[366,367,368,369,373],"p",{},"Trifid turns letters into coordinates, then mixes those coordinates. It uses a cube instead of ",[370,371,372],"a",{"href":177},"Bifid's square",". That extra dimension gives J its own cell.",[375,376,381],"pre",{"className":377,"code":378,"language":379,"meta":380,"style":380},"language-ts shiki shiki-themes ciphers ciphers ciphers","const trifid = create(\"trifid\");\n\ntrifid.encode(\"aide-toi, le ciel t'aidera\", {\n  key: \"FELIX MARIE DELASTELLE\",\n  period: 5,\n}).text; \u002F\u002F \"FMJFVOISSUFTFPUFEQQC\"\n\ntrifid.decode(\"FMJFVOISSUFTFPUFEQQC\", {\n  key: \"FELIX MARIE DELASTELLE\",\n}).text; \u002F\u002F \"AIDETOILECIELTAIDERA\"\n","ts","",[382,383,384,414,421,438,450,456,466,471,486,495],"code",{"__ignoreMap":380},[385,386,389,393,397,400,404,407,411],"span",{"class":387,"line":388},"line",1,[385,390,392],{"class":391},"skH_V","const",[385,394,396],{"class":395},"s38Sx"," trifid ",[385,398,399],{"class":391},"=",[385,401,403],{"class":402},"sK71F"," create",[385,405,406],{"class":395},"(",[385,408,410],{"class":409},"shU9J","\"trifid\"",[385,412,413],{"class":395},");\n",[385,415,417],{"class":387,"line":416},2,[385,418,420],{"emptyLinePlaceholder":419},true,"\n",[385,422,424,427,430,432,435],{"class":387,"line":423},3,[385,425,426],{"class":395},"trifid.",[385,428,429],{"class":402},"encode",[385,431,406],{"class":395},[385,433,434],{"class":409},"\"aide-toi, le ciel t'aidera\"",[385,436,437],{"class":395},", {\n",[385,439,441,444,447],{"class":387,"line":440},4,[385,442,443],{"class":395},"  key: ",[385,445,446],{"class":409},"\"FELIX MARIE DELASTELLE\"",[385,448,449],{"class":395},",\n",[385,451,453],{"class":387,"line":452},5,[385,454,455],{"class":395},"  period: 5,\n",[385,457,459,462],{"class":387,"line":458},6,[385,460,461],{"class":395},"}).text; ",[385,463,465],{"class":464},"scIB-","\u002F\u002F \"FMJFVOISSUFTFPUFEQQC\"\n",[385,467,469],{"class":387,"line":468},7,[385,470,420],{"emptyLinePlaceholder":419},[385,472,474,476,479,481,484],{"class":387,"line":473},8,[385,475,426],{"class":395},[385,477,478],{"class":402},"decode",[385,480,406],{"class":395},[385,482,483],{"class":409},"\"FMJFVOISSUFTFPUFEQQC\"",[385,485,437],{"class":395},[385,487,489,491,493],{"class":387,"line":488},9,[385,490,443],{"class":395},[385,492,446],{"class":409},[385,494,449],{"class":395},[385,496,498,500],{"class":387,"line":497},10,[385,499,461],{"class":395},[385,501,502],{"class":464},"\u002F\u002F \"AIDETOILECIELTAIDERA\"\n",[504,505,507],"h2",{"id":506},"the-cube","The cube",[366,509,510,511,515],{},"Félix Delastelle described Trifid in his 1902 ",[512,513,514],"em",{},"Traité élémentaire de cryptographie",". It's a sibling of his Bifid cipher.",[366,517,518],{},"Bifid has a 5x5 square and folds J into I. Trifid has 27 cells: one for each letter and one for a symbol. Nothing has to share.",[366,520,521],{},"How do you build the cube? Write the keyword's letters, dropping repeats. Add the remaining letters from A to Z, then the symbol. Spaces and everything except ASCII letters are ignored in the key.",[366,523,524,525,528,529,532],{},"For ",[382,526,527],{},"FELIX MARIE DELASTELLE",", that gives ",[382,530,531],{},"FELIXMARDSTBCGHJKNOPQUVWYZ+",". Fill three layers, row by row:",[375,534,539],{"className":535,"code":537,"language":538,"meta":380},[536],"language-text","Layer 1   Layer 2   Layer 3\nF E L     S T B     O P Q\nI X M     C G H     U V W\nA R D     J K N     Y Z +\n","text",[382,540,537],{"__ignoreMap":380},[366,542,543],{},"The key can't move the symbol. It always takes the last cell. With no key, the cube uses the plain alphabet.",[504,545,547],{"id":546},"how-do-the-coordinates-move","How do the coordinates move?",[366,549,550,551,554,555,558,559,562],{},"Each character gets three coordinates: layer, row, column. On paper, each coordinate runs from 1 to 3. In this cube, A is ",[382,552,553],{},"131"," and ",[382,556,557],{},"+"," is ",[382,560,561],{},"333",".",[366,564,565],{},"For each group, write the coordinates vertically under their characters. Read the three rows across as one line. Cut that line into threes, then look up each set in the cube. The final group can be shorter. Decoding reverses the process.",[366,567,568],{},"Each ciphertext letter depends on three plaintext letters. That's the fun of Trifid: the cube gives letters room to mingle.",[504,570,572],{"id":571},"the-27th-symbol","The 27th symbol",[366,574,575,576,578,579,582,583,585,586,589],{},"The default symbol is ",[382,577,557],{},". Delastelle and Wikipedia use it too. The ACA uses ",[382,580,581],{},"#",", and other sources use ",[382,584,562],{},". Set ",[382,587,588],{},"symbol"," to match the source you're working with.",[366,591,592,593,596],{},"The symbol must be one character. It can't be an ASCII letter or whitespace. Digits, punctuation, ",[382,594,595],{},"é",", and even an emoji are fine.",[366,598,599,600,603,604,606],{},"With ",[382,601,602],{},"symbol: \".\"",", a full stop belongs to the alphabet and gets enciphered. With the default ",[382,605,557],{},", it's dropped. That 27th cell isn't just there to look square.",[504,608,610],{"id":609},"what-does-the-period-do","What does the period do?",[366,612,613,616],{},[382,614,615],{},"period"," sets the number of characters in each group. It defaults to 5 and must be a positive integer. A period longer than the text puts the whole text in one group.",[366,618,619,620,623],{},"What happens at ",[382,621,622],{},"period: 1","? Nothing much. Each character's coordinates go straight back into the cube. The ciphertext equals the cleaned plaintext. That's a cube with nowhere to turn.",[366,625,626],{},"Wikipedia recommends a group size coprime to 3 for the most diffusion. Delastelle gives examples with groups of 5 and 7. But don't mistake diffusion for modern security. Trifid is a puzzle cipher, not a place to keep secrets.",[504,628,630],{"id":629},"what-gets-dropped","What gets dropped",[366,632,633,634,636,637,640],{},"Both directions read lowercase ASCII as uppercase. Both keep A to Z and the chosen symbol. They drop everything else, including spaces, digits, punctuation, ",[382,635,595],{},", and ",[382,638,639],{},"ß",", unless one is the chosen symbol. Output is uppercase in one run, without spaces.",[504,642,644],{"id":643},"checked-against","Checked against",[366,646,647,648,654],{},"The opening example reproduces the ",[370,649,653],{"href":650,"rel":651},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FTrifid_cipher",[652],"nofollow","English Wikipedia example"," in both directions. The decode uses the default period of 5.",[366,656,657,658,663,664,666],{},"The ",[370,659,662],{"href":660,"rel":661},"https:\u002F\u002Fwww.cryptogram.org\u002Fdownloads\u002Faca.info\u002Fciphers\u002FTrifid.pdf",[652],"ACA example"," uses ",[382,665,581],{}," and a period of 10:",[375,668,670],{"className":377,"code":669,"language":379,"meta":380,"style":380},"const aca = { key: \"EXTRAORDINARY\", period: 10, symbol: \"#\" };\n\ntrifid.encode(\"trifids are fractionated ciphers\", aca).text;\n\u002F\u002F \"EYMXVUCRYYYYEAYVYOVVXITDPATHE\"\n\ntrifid.decode(\"EYMXV UCRYY YYEAY VYOVV XITDP ATHE.\", aca).text;\n\u002F\u002F \"TRIFIDSAREFRACTIONATEDCIPHERS\"\n",[382,671,672,696,700,714,719,723,736],{"__ignoreMap":380},[385,673,674,676,679,681,684,687,690,693],{"class":387,"line":388},[385,675,392],{"class":391},[385,677,678],{"class":395}," aca ",[385,680,399],{"class":391},[385,682,683],{"class":395}," { key: ",[385,685,686],{"class":409},"\"EXTRAORDINARY\"",[385,688,689],{"class":395},", period: 10, symbol: ",[385,691,692],{"class":409},"\"#\"",[385,694,695],{"class":395}," };\n",[385,697,698],{"class":387,"line":416},[385,699,420],{"emptyLinePlaceholder":419},[385,701,702,704,706,708,711],{"class":387,"line":423},[385,703,426],{"class":395},[385,705,429],{"class":402},[385,707,406],{"class":395},[385,709,710],{"class":409},"\"trifids are fractionated ciphers\"",[385,712,713],{"class":395},", aca).text;\n",[385,715,716],{"class":387,"line":440},[385,717,718],{"class":464},"\u002F\u002F \"EYMXVUCRYYYYEAYVYOVVXITDPATHE\"\n",[385,720,721],{"class":387,"line":452},[385,722,420],{"emptyLinePlaceholder":419},[385,724,725,727,729,731,734],{"class":387,"line":458},[385,726,426],{"class":395},[385,728,478],{"class":402},[385,730,406],{"class":395},[385,732,733],{"class":409},"\"EYMXV UCRYY YYEAY VYOVV XITDP ATHE.\"",[385,735,713],{"class":395},[385,737,738],{"class":387,"line":468},[385,739,740],{"class":464},"\u002F\u002F \"TRIFIDSAREFRACTIONATEDCIPHERS\"\n",[366,742,743,744,746],{},"The ACA prints ciphertext in groups of five, with a final period. Decoding drops those spaces and the period because ",[382,745,581],{}," is the symbol. Its last group has 9 letters, not 10.",[366,748,749],{},"The tests check both examples both ways. They also round trip a keyed cube at every period from 1 to the text length.",[366,751,752],{},"The CLI uses the same defaults:",[375,754,758],{"className":755,"code":756,"language":757,"meta":380,"style":380},"language-sh shiki shiki-themes ciphers ciphers ciphers","ciphers encode trifid \"aide-toi, le ciel t'aidera\" --key \"FELIX MARIE DELASTELLE\"\n# FMJFVOISSUFTFPUFEQQC\n","sh",[382,759,760,780],{"__ignoreMap":380},[385,761,762,765,768,771,774,777],{"class":387,"line":388},[385,763,764],{"class":402},"ciphers",[385,766,767],{"class":409}," encode",[385,769,770],{"class":409}," trifid",[385,772,773],{"class":409}," \"aide-toi, le ciel t'aidera\"",[385,775,776],{"class":409}," --key",[385,778,779],{"class":409}," \"FELIX MARIE DELASTELLE\"\n",[385,781,782],{"class":387,"line":416},[385,783,784],{"class":464},"# FMJFVOISSUFTFPUFEQQC\n",[366,786,787,788,791,792,636,795,562],{},"It accepts ",[382,789,790],{},"--key",", ",[382,793,794],{},"--period",[382,796,797],{},"--symbol",[504,799,801],{"id":800},"errors-and-analysis","Errors and analysis",[366,803,804,805,807,808,810,811,814,815,818],{},"An invalid ",[382,806,615],{}," or ",[382,809,588],{}," raises ",[382,812,813],{},"InvalidOptionError",". So does a ",[382,816,817],{},"key"," that isn't a string. Omitting the key is fine.",[366,820,821],{},"There are 26! possible cube orders, multiplied by the choice of period. The symbol stays fixed in the last cell.",[366,823,824,829,830,835],{},[370,825,826],{"href":17},[382,827,828],{},"guess"," doesn't know Trifid. ",[370,831,832],{"href":17},[382,833,834],{},"recover"," doesn't take it.",[837,838,839],"style",{},"html pre.shiki code .skH_V, html code.shiki .skH_V{--shiki-light:var(--shiki-token-keyword);--shiki-default:var(--shiki-token-keyword);--shiki-dark:var(--shiki-token-keyword)}html pre.shiki code .s38Sx, html code.shiki .s38Sx{--shiki-light:var(--ui-text-highlighted);--shiki-default:var(--ui-text-highlighted);--shiki-dark:var(--ui-text-highlighted)}html pre.shiki code .sK71F, html code.shiki .sK71F{--shiki-light:var(--shiki-token-function);--shiki-default:var(--shiki-token-function);--shiki-dark:var(--shiki-token-function)}html pre.shiki code .shU9J, html code.shiki .shU9J{--shiki-light:var(--shiki-token-string);--shiki-default:var(--shiki-token-string);--shiki-dark:var(--shiki-token-string)}html pre.shiki code .scIB-, html code.shiki .scIB-{--shiki-light:var(--shiki-token-comment);--shiki-default:var(--shiki-token-comment);--shiki-dark:var(--shiki-token-comment)}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":380,"searchDepth":416,"depth":416,"links":841},[842,843,844,845,846,847,848],{"id":506,"depth":416,"text":507},{"id":546,"depth":416,"text":547},{"id":571,"depth":416,"text":572},{"id":609,"depth":416,"text":610},{"id":629,"depth":416,"text":630},{"id":643,"depth":416,"text":644},{"id":800,"depth":416,"text":801},"Trifid mixes coordinates from a cube of 26 letters and one extra symbol.","md",null,{},{"title":180,"description":849},"Ib9aIKlAUHYINmFGevLFtV8Zl5isIva_l1FUOaqjqyc",[856,858],{"title":176,"path":177,"stem":178,"description":857,"children":-1},"Bifid mixes coordinates in a Polybius square. Choose a period and an alphabet.",{"title":184,"path":185,"stem":186,"description":859,"children":-1},"Letters to digits on a board of 28 cells. Eight letters get one digit and the rest get two. The first step of the VIC cipher and of a few puzzles.",1794339074138]