Page 2 of 4

Re: Copy Protection Software

Posted: Sun Dec 06, 2009 6:43 am
by sudip
Hi Grigory,
Thanks a lot :)
But, I got a different result. GetBiosName() function returns only Bios version, not the Bios date. It definitely returns Bios date but when 2 strings are added it shows only 1st string. But it works when I store Bios date first then Bios version :roll:

Code: Select all

Function GetBiosName()

   cName := "(" + RegistryRead( "HKLM\HARDWARE\DESCRIPTION\System\SystemBiosDate" ) + ") " ;
   	+ RegistryRead( "HKLM\HARDWARE\DESCRIPTION\System\SystemBiosVersion" )
   	
Return cName
I don't know the reason of this particular behavior :? ;)

With best regards.

Sudip

Re: Copy Protection Software

Posted: Sun Dec 06, 2009 10:39 am
by Roberto Lopez
rathinagiri wrote: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?
It depends on what exactly want to do.

What do you have in mind?

Re: Copy Protection Software

Posted: Sun Dec 06, 2009 11:19 am
by gfilatov
sudip wrote:Hi Grigory,
Thanks a lot :)
But, I got a different result. GetBiosName() function returns only Bios version, not the Bios date. It definitely returns Bios date but when 2 strings are added it shows only 1st string. But it works when I store Bios date first then Bios version :roll:

...
I don't know the reason of this particular behavior :? ;)
Hello Sudip,

Try the updated function :arrow:

Code: Select all

Function GetBiosName()

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

Return strtran(cName, chr(0), "")

Re: Copy Protection Software

Posted: Sun Dec 06, 2009 11:51 am
by sudip
Hello Grigory,

Thanks a lot :) It works :D

I should have thought that - null terminated string :oops:

Here is a small sample developed with your function
BiosRead.zip
(1.99 KiB) Downloaded 356 times
With best regards.

Sudip

Re: Copy Protection Software

Posted: Sun Dec 06, 2009 2:57 pm
by Rathinagiri
Roberto Lopez wrote:
rathinagiri wrote: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?
It depends on what exactly want to do.

What do you have in mind?
Thanks for answering Roberto.

I want to handle this virtual disk through HMG application only. Instead of running truecrypt to open the HMG application, I want to have a single application to do both encryption and our HMG commands.

This would be very much helpful if we want to hide the data with password. (I think this too was asked by Sudip regarding whether we can have password locking for a SQLite database).

It will work like the following way:

1. We have one HMG application exe file (outside the encryption).
2. We have one truecrypted file (when mounted to a drive would give access to the dbf/SQLite file(s) required by our HMG application.
3. Our HMG application shall ask for password (through password textbox ofcourse ;))
4. If correct password is given, truecrypt volume shall be mounted to a virtual drive and data can be accessed by our application. Otherwise, data can not be accessed at all.
5. Once our HMG application is over, (ie., main window is released) truecrypt volume gets dismounted.

Thereby, database is always encrypted.

Re: Copy Protection Software

Posted: Sun Dec 06, 2009 3:42 pm
by sudip
rathinagiri wrote: I want to handle this virtual disk through HMG application only. Instead of running truecrypt to open the HMG application, I want to have a single application to do both encryption and our HMG commands.

This would be very much helpful if we want to hide the data with password. (I think this too was asked by Sudip regarding whether we can have password locking for a SQLite database).

It will work like the following way:

1. We have one HMG application exe file (outside the encryption).
2. We have one truecrypted file (when mounted to a drive would give access to the dbf/SQLite file(s) required by our HMG application.
3. Our HMG application shall ask for password (through password textbox ofcourse ;))
4. If correct password is given, truecrypt volume shall be mounted to a virtual drive and data can be accessed by our application. Otherwise, data can not be accessed at all.
5. Once our HMG application is over, (ie., main window is released) truecrypt volume gets dismounted.

Thereby, database is always encrypted.
Yes, Rathi. Thanks a lot :) Great "friends" think alike ;)

With best regards.

Sudip

Re: Copy Protection Software

Posted: Sun Dec 06, 2009 10:20 pm
by Roberto Lopez
rathinagiri wrote: I want to handle this virtual disk through HMG application only. Instead of running truecrypt to open the HMG application
<...>
TrueCrypt has a command-line interface, so, you could handle the encrypted volume via 'EXECUTE' command.

Please, take a look at that:

http://www.truecrypt.org/docs/?s=command-line-usage

Re: Copy Protection Software

Posted: Mon Dec 07, 2009 3:02 am
by Rathinagiri
Thanks Roberto.

I will see to that.

Re: Copy Protection Software

Posted: Mon Dec 07, 2009 7:13 am
by mol
Using BiosName and BiosDate is fine.
But - what about computers from one production series?
I think, it should be added to identification key something else - like a date of windows installation, date of formatting harddisk?
Marek

Re: Copy Protection Software

Posted: Mon Dec 07, 2009 10:01 am
by Rathinagiri
mol wrote:Using BiosName and BiosDate is fine.
But - what about computers from one production series?
I think, it should be added to identification key something else - like a date of windows installation, date of formatting harddisk?
Marek
What about MAC address?