如何加密/保护嵌入桌面应用程序中的 SQL Compact 3.5?
如何确保安装在客户端计算机上后,只有我的 WPF 桌面应用程序可以访问嵌入式 SQL Server Compact 3.5 SP 2 中的数据?
我正在编写一个带有预加载数据集的应用程序,这些数据非常重要,用户无法从应用程序外部访问这些数据。
在我看来,使用基于密码的加密并试图将该密码隐藏在我的应用程序中的某个位置是糟糕的设计。我确信微软已经考虑过这个问题,但我在网上找不到有关这个特定问题的任何信息。正确的做法是什么?
How can I make sure that once installed on a client computer, only my WPF desktop application has access to the data in an embedded SQL Server Compact 3.5 SP 2?
I am writing an application with a preloaded set of data that it is quite critical users can't access from outside the application.
It seems to me that using password based encryption and trying to hide that password somewhere in my application is bad design. I'm sure Microsoft has thought about this, but I can't find any info online on this particular problem. What is the right way to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您始终可以加密表中的所有数据,尽管性能会受到影响。
不知何故,无论您使用哪种解决方案,您都需要管理密码/密钥/身份验证。
You could always encrypt all the data in your tables, although taking a performance hit.
Somehow, you need to manage a password/key/authentication no matter what solution you are using.
您正在谈论 DRM,但您不太可能轻松做到这一点。如果您在应用程序中隐藏加密密钥/密码,它将阻止临时用户。拥有调试器的人可以打破这个。您可以考虑从 Microsoft 获取 DRM 工具包的许可...
You're talking about DRM and it's unlikely that you can easily do this. If you hide an encryption key / password in your application it will stop casual users. Somebody with a debugger can break this. You can look into licensing a DRM toolkit from Microsoft...