문제

I am creating an application which will run on a users machine to store records in a db4o database. 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top