防止其他人使用我的类库程序集. [英] Preventing others from using my class library assembly.

查看:98
本文介绍了防止其他人使用我的类库程序集.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个类库程序集(.dll)文件.在主GUI
应用程序中,将引用并使用此程序集.

如果我通过应用程序重新分发这些文件,则有人也可以
将类库程序集添加到其.NET项目中.

I have created a class library assembly (.dll) file. At the main GUI
application, this assembly is referenced and used.

If I redistribute these files with my application, somebody can also
add the class library assembly to their .NET project. How to prevent others to use my class library assemly files?

推荐答案

http://www.codeproject.com/KB/security/UB_CAS_NET.aspx#Security命名空间


或者另一种方法是向类中添加逻辑(使用反射),以防止任何与您要允许的程序集不匹配的程序集调用它.

http://www.eggheadcafe.com/software/aspnet/34287552/prevent-dll- usage.aspx [ ^ ]
http://www.codeguru.com/csharp/csharp/cs_misc/security/article.php/c8329[^]

http://www.codeproject.com/KB/security/UB_CAS_NET.aspx#Security Namespace


Or another way would be to add logic (using reflection) to your class to prevent it being called by any assembly that doesn''t match the one you want to allow...

http://www.eggheadcafe.com/software/aspnet/34287552/prevent-dll-usage.aspx[^]


用C ++编写,这样他们就不会破坏使用反射器的保护,然后添加安全层,以便他们需要知道密码或您识别出调用程序集之类的东西.
Write it in C++ so that they can''t break your protection with reflector, then add a security layer so that they need to know a password or you identify the calling assembly or something.


这篇关于防止其他人使用我的类库程序集.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆