如何阻止用户在记事本或任何文本编辑器中打开文件(文本文件)? [英] How do I prevent user to open a file (Text File) in note pad or any text editor?

查看:96
本文介绍了如何阻止用户在记事本或任何文本编辑器中打开文件(文本文件)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以这是我的情况:假设我有一个包含.config文件的应用程序,它会保存所有应用程序的连接字符串和其他非常重要的数据:例如sql密码



有没有办法让我隐藏配置文件或密码保护它(有或没有第三方应用程序)而不影响访问该文件的应用程序?甚至隐藏或密码保护整个目录,所以我只是添加一个快捷方式的应用程序的运行文件?



我需要这样做,因为在我们的工作场所物理服务器在启动期间没有密码保护,因为意外的电源中断,其他人可以关闭服务器,我只需要阻止那些其他人访问这些文件,他们不会得到密码或最坏的改变它我不喜欢的东西不知道。



带密码的屏幕保护程序也不是一种选择。



谢谢提前:)



PS:请尽量不要建议改变人员和我们互相交流的方式。 :)

So here's my situation: Let's say I have an app that has a .config file where it saves all of the app's connection strings and other very important data: such as sql password

Is there a way for me to hide the config file or perhaps password protect it (with or without third party app) without affecting the app that accesses that file? or even hide or password protect the whole directory so I'll just add a shortcut to the run file of the app?

I need to do this since in our workplace the physical server is not password protected during startup because of unexpected power interruptions other people can turn back the server on, I just need to prevent those other people from accessing these files that they wont be getting the password or worst change it to something I don't know.

Screen saver with password is also not an option by the way.

Thanks in advance :)

PS: please try not to suggest to change the personnel and the way we interact with each other. :)

推荐答案

看看在app.config中使用加密



但是又一次,这会是无论如何他们只能在服务器上创建一个帐户?



加密.NET app.config文件中的密码 - http://weblogs.asp.net/jongalloway/encrypting-passwords-in-a-net-app-config-文件 [ ^ ]



加密和解密应用程序配置部分 - http://davidgiard.com/2012/06/05/EncryptingAndDecryptingApplicationConfigSections.aspx [ ^ ]



-DB
Look at using encryption in the app.config

But then again, will this matter as they could just create an account on the server anyway?

Encrypting Passwords in a .NET app.config File - http://weblogs.asp.net/jongalloway/encrypting-passwords-in-a-net-app-config-file[^]

Encrypting and Decrypting application config sections - http://davidgiard.com/2012/06/05/EncryptingAndDecryptingApplicationConfigSections.aspx[^]

-DB


我在这里找到了一个很好的第三方应用程序

https://code.google.com/p/lock-a-folder/ [ ^ ]



它包含密码保护,整个目录被隐藏,但仍然可以通过快捷方式访问。
I found a good third party application here
https://code.google.com/p/lock-a-folder/[^]

it contains password protection and the whole directory is hidden and yet still accessible via shortcut.


这篇关于如何阻止用户在记事本或任何文本编辑器中打开文件(文本文件)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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