Page 1 of 1

Protect application against copy

Posted: Wed Dec 05, 2018 4:19 am
by PedroAlex
Hello.

how can I ensure that an application only works on a given pc.
In other words, I want to protect an application so that it can only be executed on that pc.
Has anyone done anything like this?
Any opinion on the correct way is welcome

Many thanks.

Re: Protect application against copy

Posted: Wed Dec 05, 2018 6:01 am
by skiman
You can check on the MAC address.

Re: Protect application against copy

Posted: Wed Dec 05, 2018 6:15 am
by Victorio
I have not this on my app, but one of application as I have work with this system :

1. when install program, this generate key file, with content info about PC, SID, hdd type, IP adress, mac adress, license key of windows and more other info
2. this file send to developer site, where this file was encrypted (crypt key know only developer),
3.file return to user and app read this file , decrypt, when file is correct , program runs.

I mean, this is old outdated system...

Or other software use test license "online" how it works I do not know, but when I want for example HDD in PC, I must call them to unblock license, and again activate with new hardware.

Re: Protect application against copy

Posted: Wed Dec 05, 2018 12:24 pm
by PedroAlex
It seems to me that the simplest and most effective way is get the serial number of the harddisk.
Do you know any way to get the hard disk serial number?

Re: Protect application against copy

Posted: Wed Dec 05, 2018 3:56 pm
by Auge_Ohr
PedroAlex wrote:Do you know any way to get the hard disk serial number?
use WMI Win32_DiskDrive

Re: Protect application against copy

Posted: Thu Dec 06, 2018 12:30 am
by Koverhage
so you have the same problems as other applications.
If the harddisk changed, the app doesn't work.

Re: Protect application against copy

Posted: Thu Dec 06, 2018 1:56 am
by PedroAlex
Jimmy,
Thank you for your always great availability.
I Will try your sugested solution.

Klaus.
that's the idea.
I just find it strange, as a programming language that costs a fortune, not having low-level comands for these basic operations.
At times I tried to use Volserial(), but this command failure in disks cloning situations.

Re: Protect application against copy

Posted: Thu Dec 06, 2018 2:05 am
by unixkd
Hi

Xbase++ provides the means to access API and with WMI you can access a lot of windows entities effortlessly.

Joe