On the other hand, Alan Turing simplified the enigma code breaking vastly because the Germans ended every encrypted message with "Heil Hitler" and the first message of the day always started with "Weather Report". The brute force encryption was taking way too long until he changed it to only consider the keys that made those words decrypt to that.

Perfect example of non-rational behavior in your opponent, leading directly to winning the war.