[Wine] Re: get unique code identifier for computer (license key calc)

vitamin wineforum-user at winehq.org
Mon Jan 31 23:25:33 CST 2011


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.







More information about the wine-users mailing list