I have created a AES128 encrypted sqlite database. I created it using SQLLiteManager. It created it and I can close it and open it again. It asks for password and it opens it up.
When I try opening it with this code, I get an error 26.
db = new SQLiteDatabase
Var dbFile As FolderItem = SpecialFolder.Desktop.Child(“PK.kno”)
If dbFile <> Nil And dbFile.Exists Then
db.DatabaseFile = dbFile
db.EncryptionKey = “Yek4%8_fi6”
Try
db.Connect
'MessageBox(“Connected to database successfully!”)
Catch error As DatabaseException
MessageBox("DB Connection Error: " + error.Message)
End Try
End If
Would you mind showing me the code to encrypt in Xojo?
I haven’t used Xojo in about 10 years, and just getting back into it.
Haven’t ever encrypted a database, but I need it for this.
If you don’t mind too much…
Alan