Whose Base Is It Anyway

Problem

Someone gave this ciphertext but I'm not sure how to solve it or what they based it off of. Seems tricky but can you figure it out?

Solution

From first glance, we can see that the cipher is full of As and Bs. This is binary, i.e. base 2. After we decode this, we will get another string with As, Bs, Cs and Ds. This would be base 4.

This continues until base 64, where we are finally able to obtain our flag (base 64 decode).

Note that for base 32, we are using a custom alphabet.

Base 64 decode the obtained string:

Script:

Last updated

Was this helpful?