Copy Protection Software

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Copy Protection Software

Post by sudip »

Hello All,

One of my clients needs a software which cannot be copied to another computer. Yes, they want to store some valuable information along with the software, which they don't want to be copied to another computer and they also don't want to run this software from pen drive.

IMHO, this can be done by checking serial number of the hard disk. But, I don't know how to do it?

Can anyone did this before?

For data encryption, I am planning to use ENCRYPT function.

Thanks in advance.

With best regards.

Sudip
With best regards,
Sudip
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Copy Protection Software

Post by Roberto Lopez »

sudip wrote:Hello All,

One of my clients needs a software which cannot be copied to another computer. Yes, they want to store some valuable information along with the software, which they don't want to be copied to another computer and they also don't want to run this software from pen drive.

IMHO, this can be done by checking serial number of the hard disk. But, I don't know how to do it?

Can anyone did this before?

For data encryption, I am planning to use ENCRYPT function.

Thanks in advance.

With best regards.

Sudip
Disk serial number can be easily changed by anyone to meet the 'original' that makes your application work.

For me, the best solution in that case, is to use an encrypted virtual disk and install the app. inside it.

ie: http://www.truecrypt.org/
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Copy Protection Software

Post by sudip »

Thanks a lot Master Roberto :D
I installed it. Now testing with it :)
With best regards.
Sudip
With best regards,
Sudip
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Copy Protection Software

Post by Rathinagiri »

This is new to me. :)

I too am badly in need of such thing.. ;) 8-)

Thanks for asking this Sudip.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Copy Protection Software

Post by Roberto Lopez »

rathinagiri wrote:This is new to me. :)

I too am badly in need of such thing.. ;) 8-)

Thanks for asking this Sudip.
We should establish an award for the forum users that do the best questions, inaugurating it with Sudip :)
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Copy Protection Software

Post by sudip »

Roberto Lopez wrote: We should establish an award for the forum users that do the best questions, inaugurating it with Sudip :)
Thanks a lot Master Roberto and Rathi :) When I was in school there was a back bencher (not me, he was sitting besides me ;) ), who always asked irrelevant questions to disturb the class. Hope I am not playing the same role here ;) :lol:

Ok jokes apart, I tested this excellent software, created an encrypted volume. I copied my app to this volume. It runs fine from there. But, how can I protect copying that app from the encrypted volume? (Yes, there are too much unused gray cells in my brain, I need more hints ;) )

Thanks in advance.

With best regards.

Sudip
With best regards,
Sudip
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Copy Protection Software

Post by Roberto Lopez »

sudip wrote: Thanks a lot Master Roberto and Rathi :) When I was in school there was a back bencher (not me, he was sitting besides me ;) ), who always asked irrelevant questions to disturb the class. Hope I am not playing the same role here ;) :lol:
I was a teacher for nearly twenty years and I can assure that, always there is one :)

But, it's still surprising to me that on the other side of the world, in very very different cultures, at last, the people behaves the same :)
sudip wrote: Ok jokes apart, I tested this excellent software, created an encrypted volume. I copied my app to this volume. It runs fine from there. But, how can I protect copying that app from the encrypted volume? (Yes, there are too much unused gray cells in my brain, I need more hints ;) )
If the operator is 'trusted' he simple should close the encrypted disk at app exit, If not, you are in trouble :)

Well... in such case you should collect info about the PC BIOS that can be not emulated (at least easily) on other machine.

Perhaps Grigory could help on this...
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
gfilatov
Posts: 1060
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: Copy Protection Software

Post by gfilatov »

Roberto Lopez wrote:...
Well... in such case you should collect info about the PC BIOS that can be not emulated (at least easily) on other machine.

Perhaps Grigory could help on this...
Hi,

Try

Code: Select all

Function GetBiosName()

	cName := RegistryRead( "HKLM\HARDWARE\DESCRIPTION\System\SystemBiosVersion" ) + " (" + ;
		RegistryRead( "HKLM\HARDWARE\DESCRIPTION\System\SystemBiosDate" ) + ")"

Return cName
I hope that helps :idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Copy Protection Software

Post by Roberto Lopez »

gfilatov wrote: Hi,

Try

Code: Select all

Function GetBiosName()

	cName := RegistryRead( "HKLM\HARDWARE\DESCRIPTION\System\SystemBiosVersion" ) + " (" + ;
		RegistryRead( "HKLM\HARDWARE\DESCRIPTION\System\SystemBiosDate" ) + ")"

Return cName
I hope that helps :idea:
THANKS!
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Copy Protection Software

Post by Rathinagiri »

May be this is too much. However...

Since truecrypt is also open source, can that be compiled using mingw and probably have a bridge for harbour so that we can use it inside our HMG application?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply