如何在我的视觉工作室中保护mdf [英] How do I secure mdf in my visual studio
问题描述
我正在使用vb.net开发简单的Windows窗体应用程序,它使用visual studio 2013创建的localdb(mdf),我创建这个'.mdf'来存储用户的密码。但在我发布我的应用程序之后,我的mdf还在应用程序数据文件夹中创建了我的.exe文件。所以为了防止通过访问sql server或visual studio或通过其他方法打开这个mdf并且只通过我的exe通过连接字符串打开mdf。那么有没有可能的方法来保护我的mdf。
对不起英语不好
我尝试了什么:
i我还没有尝试过,因为我想知道它
I am developing simple windows form application using vb.net that uses localdb (mdf) created by visual studio 2013, i create this '.mdf' to store password for the users. but after i publish my app my mdf also created wit my .exe in application data folder. So in order to prevent "opening this mdf by ataching to sql server or visual studio or by means of other method" and only open mdf through connection string by my exe. so is there any possible method to secure my mdf.
Sorry for bad english
What I have tried:
i am not tried yet since i wanna know it
推荐答案
永远不要将密码存储为文本。
始终哈希密码:安全盐渍密码哈希 - 如何正确执行 [ ^ ]
Never store passwords as text.
Always hash your passwords : Secure Salted Password Hashing - How to do it Properly[^]
这篇关于如何在我的视觉工作室中保护mdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!