PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Shareware registration. Sample?

Hello,
is there any sample source available for a shareware registration system?
I would like to protect a program (well, actually a driver) with the user name and a serial number.

Deje
It should be pretty simple to knock up a XOR encryption system with a checksum or something to encrypt and embed the serial somewhere. (Or do a simple checksum-style algorithm over the user-name to generate the serial).
Conan · 16 Oct 2002, 09:46 UTC — registration code
The registry is one obvious place to write your info to but you should make the keys non-obvious & have more than one location. You can also modify a file which does not appear to be part of your secutity with some identifier to indicate registration plus any other method you can think of to disguise the process. In your code you should not embed any literals which can make it easy for anyone disassembling your code to follow how you do the registration checking.