在Visual Studio .net中保护代码 [英] Securing codes in visual studio .net

查看:106
本文介绍了在Visual Studio .net中保护代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以在Visual Studio中保护代码,即.使用我的源代码本身,并带有密码,即使其他人获得了源代码文件,其他人也无法查看.

Is there any way to secure the code at visual studio ie. at my source code itself with password that others can''t view even they get the source code file.

推荐答案

使用Visual Studio,否.最好的方法是将源代码保存在安全的地方.根据情况的不同,这可能意味着:
-通过适当的文件夹特权保护网络中的安全位置
-其他人无法访问的外部大众媒体(硬盘,USB)

并且,如果需要,您可以使用例如zip密码保护文件.使用文件时,将其解压缩到正确的位置,进行修改并更新zip文件(或创建一个新文件).

但是,如果分发应用程序,请记住可以使用多种工具将托管的应用程序转换回源.使翻译困难的一种方法是使用混淆 [ Dotfuscator [
Using Visual Studio, no. The best way is to keep the source code in a safe place. Depending on the situation this could mean places like:
- safe location in the network protected by proper folder privileges
- external mass media (hard drive, usb) which isn''t accessible to others

And if you need, you can password protect the files for example using a zip. When working with the files uncompress them to proper place, make the modifications and update the zip file (or create a new one).

However, if you distribute the application, remember that a managed application can be translated back to source with several tools. One way to make the translation hard is to use obfuscation[^]. In .Net one tool you can use is Dotfuscator[^]


Visual Studio无法实现.为了保护您的代码,可以使用VSS或SVN并使用用户ID和密码对其进行保护.
这样,只有VSS或SVN的授权用户才能访问代码.
It is not possible with Visual studio. For securing your code you can use VSS or SVN and make it protected with userID and password.
In this way, only authorized user of VSS or SVN can access the code.


这篇关于在Visual Studio .net中保护代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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