- Keygen
A keygen (a portmanteau of "
key generator ") is a small program that will generate acryptographic key for data encryption. An example is the ssh-keygen.Programs that generate valid
CD key s or serial/registration numbers for a piece ofsoftware are also commonly called keygens. These are made available bysoftware cracking groups for free download on various websites dedicated to software piracy. The use of Keygens to activate software without purchasing a genuine code is illegal.How registration key generators work
The author typically uses a
disassembler to look at the raw assembly code of the program they are writing the keygen for, checking either the software itself or the installer. Once they have access to the program's code, they can locate thesubroutine (s) responsible for verifying that the key entered is valid. Using this knowledge, they canreverse engineer the algorithm used to generate valid keys, which is then incorporated into the keygen. Sometimes keygens have code incorporated into the keygen to change the written code of a program in order for the code that is given via the keygen to work but, this is not typically done for a keygen as it requires more effort and sometimes added code for it to work.Problems with keygens
Legal issues aside, there are two major issues in using keygens:
Product activation and online key verification.Keys generated with a key generator may not work with software that is used online, including downloading
software update s. This is because the user must confirm their serial number every time the software connects to the server, and the key may be invalid for various reasons.One reason is that the cracker may have misinterpreted the original algorithm, creating a key that was "good enough" to let the software be installed, but not letting all possible future generated keys be valid.
Another reason may be that the software developers only accept keys that they know were distributed with the media during production, or had been issued with an online registration, causing a cryptographically correct key to still be denied.
A third reason could be a secondary unpublished algorithm that is used by the vendor, e.g., to extend the previous example, the characters 0, 7, 9, C, and K are never allowed. The software that confirms the key on the user's machine does not know these numbers and characters are not allowed, and will accept the keygen output, but the online confirmation fails.
Keys for
massively multiplayer online game s are different; usually each key is uniquely generated by the producer and included with the product, usually in a tamper-proof medium such as ascratch card or tamper-proof envelope. These keys will usually become uniquely linked to a certain game account upon usage and are rendered "useless" by this process. Therefore, MMOGs are not usually subject to piracy.Keygens may also contain viruses (depending on whom they are downloaded from). When the program is opened, instead of providing a valid key, the program may install harmful software on the computer on which it was installed.
Actions taken by software developers
Software developers have tried to prevent piracy by using 'Product Activation', which requires the user to connect to the internet or call a number in order to make a program usable. Newer keygens also contain a method to bypass the product activation. Some software manufacturers like Adobe include telephone activation which requires you to give a special code when you call. A method used by some keygens allows one to type the number given by the product to generate the (telephone) activation code which is then typed into the software. Some software developers, such as Norton, have worked around this by not including this feature or making it harder to locate in the program's code. This makes it harder for cracking groups to write an activation code.
Keygens are widely available but the legality of their use differs internationally.
References
Wikimedia Foundation. 2010.