Skip to main content

Codebreaker 1

 Researching about different codes has been a bit of a refresher course for me. I love puzzles and working things out, and I really enjoy working out puzzles for mystery / unknown geocaches - some of the puzzles are ingenious, but quite often you have to be on the same wavelength as the puzzle setter. I remember watching a little snippet of Only Connect about 10 years ago and wondering what it was all about, as I really couldn’t work out what was going on. However, over time, we started watching it, and learnt about the way the game was played and we made the connections that enabled us to solved the puzzles. Admittedly, some of the connections are tenuous at times - and I wonder how on Earth anyone can see the connection in just one or two guesses.

Working things out and using logic to do so is a skill - it is something that can be learned. I was - and still am - in awe of people doing cryptic crosswords; my grandad used to do them, but I could never work them out. A teacher at school (when I was still teaching) used to do them, and during a week when teachers were encouraged to try new things in lunchtime and after school, he showed us some of the tricks for solving cryptic crosswords. In the past couple of years I have started doing them too - learning the words and phrases that are used to indicate what you need to do - e.g. upset in a crossword indicates an anagram.

First of all - let’s look at codes and ciphers; these two words do not mean the same thing. A code is where you substitute one word for another word or sentence - you generally need a code book or a crib sheet to help you. The idea of a code is to shorten the message. A cipher is where you mix up or substitute existing letters - it is an algorithm. Codes operate on semantics - on the meaning, whereas ciphers operate on the syntax - the symbols. What both codes and ciphers do is hide a message. 

I’ve looked at a number of different ciphers for the Codebreaker badge - and here are some of my findings.

Caesar cipher / shift - or ROT 13: the Caesar cipher shifts all letters a certain number of places, e.g. A becomes C, B becomes D, C becomes E - this is a shift of 2 letters, so is known as ROT 2 or rotation 2. A more common variant is ROT 13 - A becomes N, B becomes O, C becomes P - this is the only rotation that can be used to both encrypt and decrypt a message. Geocaching uses ROT 13 on its website for the clues. ROT 5 can also be found within geocaching - but this is generally used with digits, as it will both encrypt and decrypt the digits. Geocaching Toolbox is a great website for more information about all sorts of codes and ciphers - but this link is specifically about Caesar Shift.

Classic substitution is putting one letter in place of another - a bit like the code word puzzles, where you have a number to indicate a specific letter. 

Transposition ciphers could be thought of as a bit of Morecambe and Wise - all the same letters, just not necessarily in the same order! The letters don’t change, order of the letters within the message is scrambled according to some well-defined scheme - e.g. write every word backwards, or rail-fence cipher.

Vigenère cipher requires a square where each subsequent row is a Caesar shift of the original alphabet - it is known as a polyalphabetic cipher. A variation on this is the reverse Vigenère, where the alphabet goes backwards.

Book cipher is also known as the Ottendorf cipher; you have 3 numbers which correspond to page number, row number, and position of the word in the row. This is seen in the film National Treasure where they discover a secret cipher on the back of the Declaration of Independence. There is a problem with this cipher - you need to have the same copy / edition of the book - imagine the problems if you were using the bible, and one person had the King James Version, and another person was using The Message.

In researching all the different types of codes and ciphers I got to grips with how Playfair works and also how ADFGX works as well - these have been a bit of a mystery up until now.

The Enigma cipher is a very complex (to my mind) piece of engineering, which has an electromechanical rotor mechanism that scrambles the 26 letters of the alphabet. There are so many different aspects to this machine - a plugboard where letters could be exchanged with another letter, the ring setting of the rotor wheels - which indicated the position of each alphabet ring relative to its rotor wiring, the rotor orientation - setting the starting position for each rotor. In addition the machine had three (later four or five) rotors, and these all had different rotor wiring and had to be in a specific order. To be able to decrypt messages from an Enigma you need a list of daily key settings (amongst other things) so that you had: wheel order, ring settings, plug connections, (wiring of reconfigurable deflector - which came in later versions) and the starting position of the rotors. If you had this information you could use another Enigma machine to decrypt the message. This cipher is nigh-on impossible to break without other clues; something that helped is that no letter can be enciphered as itself. The film Enigma (starring Kate Winslet and Dougray Scott) is great at explaining how the Enigma machine works, and how they could use other bits of information to get the code settings for the day.

Some ciphers - such as Classic Substitution ciphers can be broken by using frequency analysis. You look at how often certain letters appear, and compare this with how often certain letters appear in plaintext. Think of the Scrabble tiles - less coming letters have a higher value in Scrabble, so the lower value letter tiles are the more common letters. In English common letters (in no particular order) are E, A, T, N, S, I, O, R - and using this information you can start to work out possible words - especially if you have an idea about the content of the message. This knowledge of letter frequency is useful for the word games that have become popular this year - Wordle, Bardle, Quordle. I use the same 2 starting words each time with these game - PIOUS and EARNT (I have to use EARTH for Bardle, as the bard didn’t use EARNT in his works). In this way I have covered all the vowles and some of the most common consonants, and then it is a matter of working out anagrams!





Comments

Popular posts from this blog

Critic badge - Review of an Exhibition

  Being a quilter I like to go to local quilt exhibitions, as they can provide great inspiration for future projects. In August 2024 Little Stitches held an exhibition at Littleham. The group Little Stitches have been going since 2011; they meet on a Saturday at Littleham Village Hall once a month, and they have had around 50 members. They hold an exhibition fairly regularly, every 2 or 3 years - and I have attended most of them.  I attended the exhibition with the young adult who lives with us, on a Sunday - the exhibition was on for just 2 days. We received a warm welcome as soon as we walked through the door - helped by knowing the member who greeted us! Coming from North Devon and being a part of the quilting community, it is becoming increasingly common to see people I recoggnise. On entering the room where the quilts were exhibited, we came across the raffle. I bought tickets - I wasn’t lucky on this occasion - but never mind, as the money raised went to North Devon Agai...

World Book Day 2025

  The World Book Day badge has a lot of appeal (like all of the monthly badges), and it was a little difficult to try to decide which clauses to do. However, I had to be sensible, and think about what I could realistically manage - and as reading is one of my ‘winding down’ activities at night, I knew I would struggle to get through lots of books.  The first book I read was ‘Of Mice and Men’ by John Steinbeck - a book on the banned reading list. I chose it as it is quite a short book. The language used in it about black people is one of the reasons it is on the banned list. Another reason is the depiction of what George does at the end of the story - which could be argued to be an act of love for his friend - the end result was always going to be the same, but George’s actions were perhaps a kinder way of doing it.  Another clause asked us to read a book which was then made into a film, then watch the film and compare. I chose to read ‘Tinker, Tailor, Soldier, Spy’ by Joh...

Critic Badge - Review of an album

The album I’ve chosen to review by George Ezra - Staying at Tamara’s. I’m a bit late to the party as far as George Ezra is concerned. I knew that I would enjoy at least one of his songs, as it is one that I heard several times whilst chaperoning our local youth theatre show, and is a song that always makes me feel good - reminding me of happy times and the camaraderie of the group - how it was then (it is just as good now, but different!). The album is in general a feel good album - I’d happily listen to it on car journeys. Certainly the first five songs are quite bouncy - and have what I would call the ‘George Ezra vibe’. The feature that comes through in the first song is that lovely deep round sounding voice - I suppose some people may call it a dark brown chocolate voice. It sounds so rich - and reminds me of Rick Astley’s sound. Although the first five songs sound bouncy, there are some darker undertones - talk of anxiety, certain words that prompt some deeper thinking. It surpris...