A brilliant mathematician manages to break the Enigma code, used by the Germans to send secret orders to their U-boats in World War II. He is also a homosexual in Britain at a time when this was illegal, besides being a security risk. The authorities decide that it is time to get him out of the way.