all groups > dotnet general > june 2003 >
You're in the

dotnet general

group:

Prevent people from using my dll's


Prevent people from using my dll's Brian Mitchell
6/29/2003 6:18:51 PM
dotnet general: How do I prevent other people from using the dll's I create? I looked at
identity permissions but it looks like those are more for identifying an
assembly.

Any help would be great. Thanks!!

Re: Prevent people from using my dll's agron
6/30/2003 9:32:15 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[quoted text, click to view]

You have two chioces:

1. Create an activex with license and use the activex

2. You can encrypt the dll's with a command line compression program or a
compression library with a secret password. And then just before loading
the dll you can decrypt to a random temp file and load it. You can either
delete or leave the temp file since its name wont make any sence anyway.

Winrar is a good candidate. It has UNRAR library you can freely use.

Enjoy.

Agron.

- --
Verify this digital signiture at http://www.mandrakesecure.net/cks/
Generate your own digital signiture with http://www.gnupg.org/
My email account does not receive messages without GNUPG signature. Best
spam killer so far.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/AANdqIgG2rIGbvcRAr7MAJ9WNRUK73xkTJx8pkVwTIOifBYPyQCeL+ob
6RGB3IrhVJ8ZUT8KRcLSUco=
=orAS
Re: Prevent people from using my dll's Brian Mitchell
6/30/2003 10:15:44 AM
Thank you very much for the support!!


[quoted text, click to view]

Re: Prevent people from using my dll's Shawn Farkas [MS]
6/30/2003 12:15:37 PM
Hi Brian,

You could use a StrongNameIdentity LinkDemand, which will prevent
assemblies without a specific strong name from linking against your
assembly. If you then use a keypair that you keep private, nobody but you
will be able to link against this assembly.

-Shawn

--

--------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights
[quoted text, click to view]

AddThis Social Bookmark Button