Previous Level: Level 11
ssh email@example.com -p 2220
The password for the next level is stored in the file data.txt, where all lowercase (a-z) and uppercase (A-Z) letters have been rotated by 13 positions.
A little bit of Theory
Substitution means replacing one character with another. Substitution ciphers have been known and used for a very long time. Some of the most known are the Caesar and Vigenère ciphers. However, these simple substitution ciphers are not secure anymore!
As the ‘Helpful Reading Material’ on the levels site mentions, rotating letters by 13 positions is the ROT13 substitution cipher. It is nice because looking at the Latin alphabet with 26 letters the encryption algorithm equals the decryption algorithm.
tr command, which stands for ’translate’, allows replacing characters with others. The base command syntax looks like the following
tr <old_chars> <new_chars>.
There are a lot of websites that offer ROT13 encryption/decryption, but sadly there is no build-in ROT13 command in Linux. However, I wanted a solution for the terminal, so I used the
tr command for substitution.
The substitution for ROT13 is A->N,…,Z->M. With tr it would be:
If we want to use ROT13 more often in the future, it might make sense to create a ‘alias’ so that we can use the name
rot5 for numbers) as command and not
Next Level: Level 13