dimanche 10 janvier 2016

C# Determine if a SQLite database file is password encrypted

Yes, I know that it's possible to attempt connecting to a SQLite database, and then using a try-catch if a password is required. This is not clean code. I am looking for a smarter way to determine if a .sqlite file is encrypted before attempting to connect to it. I am using the System.Data.sqlite dll for this project.

Aucun commentaire:

Enregistrer un commentaire