> For the complete documentation index, see [llms.txt](https://the-winrars.gitbook.io/writeups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://the-winrars.gitbook.io/writeups/2020-writeups/redpwn-ctf/crypto/12-shades-of-redpwn.md).

# 12 Shades of Redpwn

Starting from the top as 0, represent each colour as a base12 digit to get `86908187A349994397974192497B41977B44927B449698A5`.

Then convert from base12 each 2 chars to get flag:

```python
line = "86908187A349994397974192497B41977B44927B449698A5"
n = 2
x  = [line[i:i+n] for i in range(0, len(line), n)]
o = ""
for i in x:
  o += chr(int(i,12))
print(o)
```

## flag: flag{9u3ss1n9\_1s\_4n\_4rt}
