Web Worm
Web Worm

Reputation: 2066

How can i protect my dll library in vb.net

I have created a dll library and now i want to secure it and distribute it to others.

I want to provide a trial so that the user can see what it can do.

What can I do to protect it?

Thanks!

Upvotes: 0

Views: 1759

Answers (3)

hrk1991
hrk1991

Reputation: 3

There is a easy way but it has some limitations. You just add expiry date and check system time, if system date is greater than expiry date then return with error message

Upvotes: 0

Sam
Sam

Reputation: 770

You can sign the assembly so that users can guarantee that it was built by you (and hasn't been tampered with), but I presume that the 'protection' you require is something other than this? Please explain further your requirements.

Upvotes: 2

Fredrik Ullner
Fredrik Ullner

Reputation: 2156

There are different ways to "secure" a library.

  • Obfuscate the library, making private (well, and public, too I suppose) parts of the DLL garbled for viewers.
  • If your intent is to provide time-based use, I'd suggest you add some mechanism in the DLL that makes it a) stamped with the distribution date and b) constant validation when someone calls your DLL.

Note that neither of these ways will make your public functionality "invisible". There's no way to secure DLLs in the sense of a full DRM.

Upvotes: 1

Related Questions