Challenge

Part of the LAMPREY thread in the CIPHER-Wiki series (ctf313.com/cipher-wiki): four letters from 1952 to 1956 and 137 five-symbol groups made only of X and Y.

Approach

In the first letter some letters are wrapped in <em>, and they spell “baudot”. That is a red herring: decoding as ITA2 under every bit order and permutation gave garbage, and so did Bacon. What worked was treating each five-symbol group as one symbol of a monoalphabetic substitution, with YXXXX as the space:

1
2
g = re.findall(r'\b[XY]{5}\b', s); m = {}
out = [' ' if w == 'YXXXX' else m.setdefault(w, 'abcdefghijklmnopqrstuvw'[len(m)]) for w in g]

The repeated three-symbol word is THE, and “THE SECRET CODE IS THE WORD” falls out of the pattern. The full text ends “…THE SECRET CODE IS THE WORD SOVEREIGNTY.”

Flag

SOVEREIGNTY