product-key

Secure algorithm for creating license keys?

I would like to distribute an application, but have license key that they can enter to unlock. What is a good algorithm to create a concise key that contains information about what version they have purchased, as well as additional things such as duration of license, etc. I realize this protection can be cracked, but it keeps honest pe...

SQL Server 2005 cd Key

I need to get the cd key of my installed instance of SQL Server 2005. I've used the following code and it doesn't work, most likely because I think it was for SQL Server 2000. Please help. USE master USE master EXEC xp_regread 'HKEY_LOCAL_MACHINE', 'SOFTWARE\Microsoft\Microsoft SQL Server\80\registration', 'CD_KEY' ...

Algorithm to determine vista/windows 7 OS edition from product key

We have to automatically create the XML file for an unattended vista/windows 7 installation in which we do write the product key (MAK type). Unfortunately the windows image contains multiple editions (home, home premium, professional, ultimate) so we need to decide which version we should use and write that info to the XML as well. And w...

Application Licensing and Activation Thoughts

I have recently developed an app that I plan to sell to small businesses. I do not have a huge backing of cash so I am unwilling to purchase a commerical application that would protect my software against theft. My current plan is the following: I include a public key (pgp) or a literal code inside of the app. User purchases software ...