Doom cheat code encryption
From Just Solve the File Format Problem
Revision as of 15:50, 2 November 2019 by Dan Tobias (Talk | contribs)
Doom cheat code encryption was used in the original 1993 version of Doom to make the cheat codes a little harder for hackers to find, so they didn't appear in the raw binary code as plain ASCII characters. Twitter user @Foone described it in a 2019 thread.
This low-grade encryption is done by shifting the bits of 8-bit numbers (which can represent single ASCII characters) which reverses the order of the bits except for those representing 4 and 32. The shifted values are stored in a lookup table in the Doom program.