Further to my previous post on encrypting App files I am following suggestions to put my Regex dictionaries into/out of encrypted SQLite files stored in my copy files.
I think I have been able to encrypt the files ok but can’t read them back. I have just been following the examples and have the following but can’t connect to the DB. Where could the issue be?
Var file As FolderItem = SpecialFolder.Resource("MyDictionary.sqlite")
If file <> Nil Then
mDBSQLite = New SQLiteDatabase
mDBSQLite.DatabaseFile = file
mDBSQLite.EncryptionKey = "aes256:5uper_2ecurePa55m0r9!"
If Not mDBSQLite.Connect Then
MessageBox("Error connecting to the database")
End If
Else
MessageBox("Error found while creating the file")
End If
mDBSQLite.Decrypt
SQLExtractData //extract the data and put back in Dictionaries
10 posts - 4 participants