Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activation code algorithm
Message
From
28/07/2012 08:59:02
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
27/07/2012 09:18:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01549413
Message ID:
01549476
Views:
152
>for the security or protection of my sofware, i would like to generate an activation code that will be use for the installation.
>code that can have such format : XXXX-XXXX-XXXX-XXXX
>this code must be used only one time.
>
>1 - how can do that ?
>2 - how can i make a demo version of software with Vfp ?

1. There is a download somewhere on the Universal Thread that will give you a hard disk's serial number. You can calculate a hash from that, and show the user a code (which would be different for each user). Then, you can request an activation code, that will be calculated by another hash from that first code - obviously with a procedure that the client doesn't know. For example, use Visual FoxPro's checksum function, but add some salt to the first code.

2. An easy way to do a demo is to not allow adding records in key tables, when reccount() > MAXRECORDS (i.e., some constant you define).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform