Sitemap
Press enter or click to view image in full size
Photo by Alex Motoc on Unsplash

Member-only story

When Mallory Met Eve …

2 min readJul 30, 2020

--

Let’s have a bit of fun with an easy crypto cipher.

Mallory and Eve are being watched by Trent for all the messages they send. But before Trent started watched them, Mallory came up with a secret plan. “Let’s use RSA encryption”, he said. “And where we take the names of the leaders of the US, Germany, UK, France and Italy and then pick two of them, and create an encryption key. As it is RSA, we will generate a prime number from each name, and then generate our encryption and decryption key.”. “Okay. I know that RSA takes two prime numbers, so how do we convert their names into a prime number?”, Eve injected. “It’s all about taking their names, and treating that as our random data, and then generating the prime number based on that. So this method looks good:”

Now, as Trent watches their messages, Mallory and Eve need to arrange a secret meeting place in a capital city. And so Mallory sends a message of:

458626320157737810140685110980055110566761412238931300960324273489840

Which capital city will they meet in?

If you are stuck, here’s a helper program to do the basic RSA method [here].

If you want more ciphers challenges, try here:

--

--

Prof Bill Buchanan OBE FRSE
Prof Bill Buchanan OBE FRSE

Written by Prof Bill Buchanan OBE FRSE

Professor of Cryptography. Serial innovator. Believer in fairness, justice & freedom. Based in Edinburgh. Old World Breaker. New World Creator. Building trust.