简体   繁体   English

C#密码保护嵌入式db4o数据库

[英]C# password protect an embedded db4o database

I am creating an application which will run on a users machine to store records in a db4o database. 我正在创建一个将在用户机器上运行的应用程序,以将记录存储在db4o数据库中。 As part of the application, there will be a login form displayed when it starts up. 作为应用程序的一部分,启动时将显示一个登录表单。 How would I go about creating a password for the database and then check it? 我将如何为数据库创建密码然后进行检查? Is this possible or will I need to create a separate file that is read for a username and password? 这是否可能,或者我需要创建一个单独的文件以读取用户名和密码吗?

I interpret that as the database being stored locally - if so I would recommend encryption, as it is running locally the user could bypass your application and read the database directly from the file system. 我将其解释为数据库存储在本地-如果这样,我建议使用加密,因为它在本地运行,因此用户可以绕过您的应用程序并直接从文件系统中读取数据库。 DB40 supports encryption out of the box according to their website, but only protects from "unauthenticated" users, as the encryption key will be shared - not per user. DB40根据他们的网站开箱即用地支持加密,但是仅保护“未经身份验证”的用户,因为加密密钥将被共享-而不是每个用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM