How to secure DLL code

  • Thread starter Thread starter Augie
  • Start date Start date
A

Augie

Hi All.

This might not be the correct place to ask this question... Then again I'm
not sure where else to ask this...

When you build a DLL to use with "OUR" code... How do you prevent others
from using the DLL?

Thanks.

Regards.

Augie
 
Augie said:
This might not be the correct place to ask this question... Then again I'm
not sure where else to ask this...

When you build a DLL to use with "OUR" code... How do you prevent others
from using the DLL?

On some fine (or terrible, depending on your point of view) day there may be
a "secure" version of Windows which allows only "trusted" applications to
run.

Until then, your are pretty much on your own. In the DLL you can call
GetModuleFilename() or something to find out who is calling you and perhaps
decide to accommodate him or not but nothing you can come up with is going
to be foolproof.

You might want to look into hardware "dongles" like the ones sold by Hasp
and Sentinel which don't out of the box restrict the caller's per se but try
to insure that only licensed end-users run the application.

Regards,
Will
 
Will,

Thanks... We can see there was a lot of effort put on this by MS part...
:-)

Is it possible to build *.lib files instead of *.dll instead (.Net code)?

Augie
 
Augie said:
Thanks... We can see there was a lot of effort put on this by MS part...

The world hasn't seen a lot of secure operating systems. The DoD has spent
about a half a billion dollars on the likes of the old Blacker but they
aren't talking much.
Is it possible to build *.lib files instead of *.dll instead (.Net code)?

Good question for which I don't have an answer. Do you know about
NetModules?

Regards,
Will
 
Don't know if this would help, but one technique we've used is to create a
small segment of shared memory and then have "OUR" app write magic bits to
it. If the DLL doesn't see the correct bits, then it won't provide any
functionality.

-Michael Viking
 
Will,

NetModules?

Augie

William DePalo said:
part...

The world hasn't seen a lot of secure operating systems. The DoD has spent
about a half a billion dollars on the likes of the old Blacker but they
aren't talking much.
code)?

Good question for which I don't have an answer. Do you know about
NetModules?

Regards,
Will
 
Thanks.

That's a good idea. We plan on using a security key with our software. I
just didn't want to have a check in every function/class. So I'm going to
have to look for a way to validation here and there and then fail if the key
is not present.

Regards,

Augie
 
Back
Top