Den här gången ska vi till Indien och till perioden mellan 400 fk och 200 ek. Du har säkert hört talas om Kama Sutra, men känner du till att Kama Sutra innehåller en lista på kunskaper en kvinna ska förvärva? En av dessa kunskaper är "mlecchita vikalpa", konsten att läsa och skriva kod och kommunicera i hemlighet.
This time we are going to India, and the period between 400 bce and 200 ce. You may have heard of Kama Sutra, but did you know the text contains a list of arts a woman should master? On of these arts is "mlecchita vikalpa", the art of understanding writing in cypher, and the writing of words in a peculiar way.
Svenska
Ett såpass gammalt verk som Kama Sutra har givetvis flera bearbetningar och (senare) översättningar, så exakt vilket eller vilka kryptosystem som faktiskt användes när verket skrevs är okänt. Jag har valt ett system som numera kallas kama-sutra-chiffer.
Chiffret
Själva chiffret är en variant på substitutionschiffer. Reglerna är att man byter ut alla bokstäverna parvis (vilket kan vara anledningen till att man idag kallar just den här varianten för Kama Sutra-chiffer i västvärlden). Det här betyder att man får ett reciprokt chiffer, det vill säga ett chiffer där kryptering och dekryptering är samma operation. Ifall X blir Z så blir ett Z till ett X (exempelvis).
Säg att man vill kryptera ett tal (14159265359), då är alfabetet siffrorna 0 till och med 9. Man skriver dessa i två rader om fem siffror i varje, till exempel:
58641
29370
Sedan ersätter man varje siffra med siffran som står över eller under och får 07028532628.
För att avkoda talet gör man sedan precis likadant.
Analys
Eftersom vi har ett rent substitutionschiffer har vi samma svagheter som för alla andra substitutionschiffer. Man kan till exempel leta efter dubbeltecknade bokstäver eller räkna statistik på bokstävernas förekomst (som är olika men känd för alla språk). Att leta efter andra mönster där samma bokstav finns på olika ställen i samma ord fungerar också.
Att vi har ett reciprokt chiffer (där ingen bokstav kodas tillbaka som sig själv) är en annan svaghet, för om man kan gissa ett eller flera ord i rad i meddelandet (crib på engelska), kan man se var den texten _inte_ finns. Det var en viktig faktor i att knäcka Enigmakryptot under andra världskriget, men här kanske du inte har så stor nytta av det.
Eftersom bokstäverna är parvis utbytta så vet vi också att om M blir C så ska C bli M, vilket är till nytta när man ska börja knäcka chiffret.
Meddelandet är ett tal med femton siffror utskrivna med latinska bokstäver (a-z).
Ifall siffrorna blivit "582430301531810" så skulle cachen ligga på N 58° 24.303 E 015° 31.810.
Det finns en bonus i cachen som är krypterad på samma sätt, avkoda och spara den bonusen för framtiden.
Observera att det inte finns någon penna i cachen så ta med en egen!
Lycka till.
English
A book as old as Kama Sutra obviously has obviously been reworked and translated many times, so exactly what ciphers were used at the time is not known with certainty. I have picked the cipher know as the "Kama Sutra cipher".
The Cipher
The ciphre is a variation of a substitution cipher. The rule is that you exchange the letters in pairs (this might be one reason we in the West call this the Kama Sutra cipher). This makes it a reciprocal cipher, that is a cipher where encryption and decryption is the same operation. If X encrypts to Z, then a Z becomes an X.
Say you want to encrypt the digits of a number (14159265359), then your alphabet will be the digits 0 through 9. You write this alphabet in two rows of five digits each, like this:
58641
29370
You replace each digit with the digit on the row above or below in the same column and end up with 07028532628.
Decoding is the exact same operation.
Analysis
As this is a substitution cipher we have the same weaknesses as for all substitution ciphers. Looking for double letters or calculating letter frequences (which are known, but varies between languages) are two approaches. You can also look for other patterns where the same letter appears in different parts of a word.
The fact that this cipher is reciprocal (no letter is ever coded back to itself) is another weakness, because if you can guess one or more words in the message (a crib) you can immediately se where the crib is not, as the letters will match. This was important in breaking the Enigma cipher during the second World War, but you might not have have that much use of this here.
As the substitution is done in pairs, we also know that if M becomes a C, then C become an M. This is very useful for breaking the cipher.
The message is a number with fifteen digits spelled out with latin letters (a-z).
If this number was "582430301531810" the cache would be at N 58° 24.303 E 015° 31.810.
There is a bonus in the cache encrypted in the same way, decode this and save the number for future use.
Note there is no pen (or pencil) in the cache, so remember to bring your own.
Good Luck.
Meddelande / The message
aplfb pprbm jfbpt sxfbp taplf bebql zvssx aplfb rsslr sslsx rsslf bpt
Checker