aleroot
2011-Jan-31 20:45 UTC
[Wine] get unique code identifier for computer (license key calc)
I've developed a windows application, that on windows get the hard disk number for generating a code number, with this number i've a keygen that generate a validation key for activate the program. This application runned on wine return always the same code because the hard disk number is the same for wine. How can i generate a valide unique code for the computer where application run under wine ? Is there a way to calculate a per-machine unique number ? Thanks.
vitamin
2011-Feb-01 05:25 UTC
[Wine] Re: get unique code identifier for computer (license key calc)
aleroot wrote:> I've developed a windows application, that on windows get the hard disk number for generating a code number, with this number i've a keygen that generate a validation key for activate the program.HDD serial number is a very bad choice. Whenever user gets new HDD your protection will break. Wine doesn't even return the actual HDD serial number because Wine has no direct access to disk to read it. aleroot wrote:> How can i generate a valide unique code for the computer where application run under wine ?Most unique numbers present on a computer can be faked with Wine. It's open source and no one can prevent a person from modifying Wine source code. All protection schemas that tie to some sort of serial numbers of a PC or a component can easily be broken. The only viable protection is hardware key (e.g a usb dongle). Or online protection (verification with server that user has valid license and that license is used on one computer at a time). Of course any protection needs to be well integrated into software itself so it can't be easily bypassed.