I linked to PG4 page which builds on an example from the help file in showing a unique code for telephone software activation. The page shows the users their MAC address (If the page can't find a MAC address it uses a pre-designated MAC address).
The addition I made is a process to convert the MAC address into a number by substituting 0 for A, 1 for B... through 5 for F. This leaves a numeric string. At that point you divide the number by the number of days since the app was built (Also from the examples) and truncate the result to integers.
This unlock code is unique to the computer the user is calling from and changes every day. This cuts the likelihood of abuse dramatically.
Basically you do the calculation and read them the result as the Unlock Code. They type in the Unlock Code in an edit box, then if the program comes up with the same value as they entered the installation can proceed. I actually have code in the screen for copying the setup program (which has a non executable extension on the CD) to the TEMP directory, renaming it to and EXE, then deleting it on close.
I've seen something like this asked for occasionally. The advantages to this approach is that no external DLL is required, and the seed value (days since build) is ever changing.
The logic will work in SF60 as well, but the constant for build date has a different name.
Download PG4 Page
The addition I made is a process to convert the MAC address into a number by substituting 0 for A, 1 for B... through 5 for F. This leaves a numeric string. At that point you divide the number by the number of days since the app was built (Also from the examples) and truncate the result to integers.
This unlock code is unique to the computer the user is calling from and changes every day. This cuts the likelihood of abuse dramatically.
Basically you do the calculation and read them the result as the Unlock Code. They type in the Unlock Code in an edit box, then if the program comes up with the same value as they entered the installation can proceed. I actually have code in the screen for copying the setup program (which has a non executable extension on the CD) to the TEMP directory, renaming it to and EXE, then deleting it on close.
I've seen something like this asked for occasionally. The advantages to this approach is that no external DLL is required, and the seed value (days since build) is ever changing.
The logic will work in SF60 as well, but the constant for build date has a different name.
Download PG4 Page
Comment