

- #License key code generator license key#
- #License key code generator generator#
- #License key code generator registration#
- #License key code generator software#
- #License key code generator license#
More importantly openssl is also usable via PHP scripts the scripts that will issue the license keys will be most probably running on your webserver and PHP is handy for this task. I chose openssl RSA simply because it is as good as the next crypto library and there are a few samples floating around.


I didn't like CryptoAPI much because it is too complicated and the keys are too opaque for interoperability with other packages. I did not make an exhaustive enumeration of pros and cons of each alternative. There also is a selection of algorithms, RSA vs DSA or elliptic curves. For windows programming there is also MS CryptoAPI, present on almost all windows boxes (even in windows 95). There are many open source big-num libraries, usually as part of crypto libraries (crypto++, openssl, mozilla's NSS et al). RSA encryption boils down to large number arithmetic (exponentiation and modulo division of numbers having in excess of 512 bits).
#License key code generator generator#
An unauthorized key generator is much more convenient for the pirates.
#License key code generator software#
But this is hard work for them, every time you release a software update, they will have to reapply the patch. Hackers can decompile your executable, find where you do the signature check and disable it with a patch. Having a bullet proof key generator doesn't mean you are saved from software piracy.
#License key code generator license key#
So your license key generator is uncrackable. As the private encryption key is a huge prime number, it is computationally infeasible (or let's say very hard indeed) to derive the private key knowing just the public key.
#License key code generator registration#
The private key is safely kept on your own webserver that sends out the legitimate registration codes. The pirate can only see the public key in your software.

To this date this cat and mouse story continues, but I believe that soon a perfect keygen will emerge. Over the years the pirates became more sophisticated as they could read the code I used to fight against them so they improved their keygens. These first crack attempts were not very good so it was easy for me to detect legitimate from keygenned keys. I used an amateur license key scheme in xplorer² it took a couple of years before the first keygens appeared back in 2006(?). People who get hold of these keygens can offer themselves free license keys for your software and your business is losing money. The worst case scenario for your licensing is your key generator scheme being discovered by some mad dog pirate, who then goes on to distribute keygens. Finally from what I could tell, these licensing tools do not support secure public/private key RSA algorithms (or their customer support wasn't tech savvy), so you risk being keygenned. Why reinvent the wheel? Believe it or not sometimes off the shelf protection solutions are easier to crack because so many programs use them, there are automated tools to strip their protection! They also use some obscure tricks to protect the software from debuggers and other tools used by the pirates, which may cause antivirus programs to mistake your software for a virus. WinLicense, Armadillo etc), or you can roll out your own key generator like I did with xplorer². There are products you can buy to add protection and licensing to your code (e.g. It is a separate skill especially when considered as part of the total protection against piracy, reverse engineering etc. Generating keys isn't easy for the average windows programmer.
