Authentication codes are normally included with a legitimate copy of the game, often on the CD sleeve or in the purchase documentation. Buying the game from an authorized seller is the reliable way to obtain one.