如何隐藏部署包中的文件?
在升级到 VB6/C# 产品时,我需要包含一个文件。单击某个按钮时,该文件将由应用程序复制到服务器位置。一旦到达那里,它将留在那里并从那时起被应用程序使用。
该文件需要包含在部署包中,以便可以将其复制到服务器位置。如果我只是将该文件包含在应用程序目录中,那么安装该产品的每个工作站都会有该文件。该文件具有轻微的敏感性,这意味着我希望它不只是以原始形式存放在每个工作站上。
有没有办法让文件可供复制,但无法让能够查看每个工作站上应用程序文件夹的人访问该文件?
我不想将文件直接部署到服务器位置,因为我不想让客户的员工参与将特定文件放在服务器上。
In an upgrade to a VB6/C# product I need to include a file. This file will be copied by the app to a server location when a certain button is clicked. Once there it will stay there and be utilised by the application from then on.
This file needs to be included in the deployment package so that it can be copied to the server location. If I just include the file in the app directory, then every workstation that installs the product will have this file. The file is of a slightly sensitive nature, which means that I would prefer that it is not just sitting in its raw form on each workstation.
Is there a way I can have the file available for copying, but not have it accessible to someone who is able to look into the app's folder on each workstation?
I do not want to deploy the file directly to the server location because I don't want to have the customer's staff involved in placing specific files on the server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
加密文件的内容。复制到服务器时对其进行解密。或者也许您在将其移动到服务器后保留其加密。
您也许可以将该文件作为嵌入式资源包含在应用程序的二进制文件之一中。至少对于非开发人员来说,它的访问性会稍差一些。
最后一个选择是更新服务器本身并为其提供文件,这样客户端就不必负责将其带到那里。当然,我不知道是什么造成了您的要求。
Encrypt the content of the file. Decrypt it while copying to server. Or perhaps you keep it's encryption after it's moved to the server.
You could perhaps include the file as an embedded resource in one of the binaries of the application. It would be somewhat less accessible to non developers at least.
Last option is to update the server itself and give it the files so the clients aren't responsible for bringing it there. Of course I don't know what creates the requirements you have.