A keygen, short for key generator, is a type of software that produces a product key or serial number that can be used to activate a piece of software. Product keys are a common method used by software developers to ensure that their products are used legitimately, preventing unauthorized use or distribution.