Rearrange the letters with a transposition cipher

Can you turn SECRET into ciphertext while keeping every letter?

Follow the worked example below to see how to rearrange the letters and read them back.

Same letters, new positions

In Lesson 2.1, a Caesar shift replaced each letter with another letter. A transposition moves the letters to new positions while keeping the letters themselves.

The reading order is the path you follow through the cells. To encrypt this example, write SECRET left to right across the first row, then the second. Read each column from top to bottom, starting with the leftmost column.

SECRET written across rows
SEC
RET
Read down the columns in order: SR, EE, CT. Together they make SREECT.

Reverse the route

To decrypt, use the same grid. Write SREECT down the columns in the same order you read them out. Now read across each row. You get SEC followed by RET, which restores SECRET.

Moving letters leaves the count of each letter unchanged. Those counts can give a codebreaker a clue about how the text was scrambled. This simple cipher is for practice.

Check your understanding

In SECRET, the two Es start in positions 2 and 5. Where do they land when you read the columns from left to right? Now imagine reading the middle column first. Where would they land, and how many Es would there be?

Show the answer

With the left column first, the Es land in positions 3 and 4. With the middle column first, they land in positions 1 and 2. Either way, there are two Es because you read each cell once.