# 12-shades-of-redpwn**Category:** Crypto
**Points:** 429
**Description:**> Everyone's favorite guess god Tux just sent me a flag that he somehowencrypted with a color wheel!>> I don't even know where to start, the wheel looks more like a clock than acipher... can you help me crack the code?>> **Author:** Boolean>> **Given:** ciphertext.jpg && color-wheel.jpg
## WriteupThis one took me a while to figure out for some reason (lol). The hint gave methe idea that the colors in the chart were corresponding to the numbers on theclock (1-12), but I was just a tiny bit wrong. The color wheel had values**(0-11)**, but in hex *obviously...* (sarcasm). Here is my edited version:

Now, with this and our ciphertext, we can start plugging and chugging values. Ourresult is the following:```86 90 81 87 a3 49 99 43 97 97 41 92 49 7b 41 97 7b 44 92 7b 44 96 98 a5```
Translating this from hex to ASCII, doesn't give us anything but gunk...```....¢I.C..A.I{A.{D.{D..¥```
After a while of staring at this stupuid color wheel and hex values I derived fromit, I started noticing that ` 86 90 81 87 ` represents ` flag ` and the `a3` and`a5` values are two apart (have to be curly braces). It finally hit me that this isin base12. This changes our ascii representation of these values:```41 -> 1          62 -> J          83 -> c          a4 -> |42 -> 2          63 -> K          84 -> d          a5 -> }43 -> 3          64 -> L          85 -> e44 -> 4          65 -> M          86 -> f45 -> 5          66 -> N          87 -> g46 -> 6          67 -> O          88 -> h47 -> 7          68 -> P          89 -> i48 -> 8          69 -> Q          8a -> j49 -> 9          6a -> R          8b -> k4a -> :          6b -> S          90 -> l4b -> ;          70 -> T          91 -> m50 -> <          71 -> U          92 -> n51 -> =          72 -> V          93 -> o52 -> >          73 -> W          94 -> p53 -> ?          74 -> X          95 -> q54 -> @          75 -> Y          96 -> r55 -> A          76 -> Z          97 -> s56 -> B          77 -> [          98 -> t57 -> C          78 -> \          99 -> u58 -> D          79 -> ]          9a -> v59 -> E          7a -> ^          9b -> w5a -> F          7b -> _          a0 -> x5b -> G          80 -> '          a1 -> y60 -> H          81 -> a          a2 -> z61 -> I          82 -> b          a3 -> {```
Now decoding with our base12 ASCII representation gives us the flag.
## Flagflag{9u3ss1n9_1s_4n_4rt}
## Resources[ASCII Chart](http://www.asciitable.com/)