SQLiteDatabase.Decrypt

From Xojo Documentation

Revision as of 23:29, 29 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

SQLiteDatabase.Decrypt()

Supported for all project types and targets.

Decrypts an encrypted database. You must be connected to the database in order to decrypt it.

Example

This example decrypts an encrypted database:

Var db As New SQLiteDatabase
db.DatabaseFile = FolderItem.ShowOpenFileDialog("db.sqlite")
db.EncryptionKey = "howdy+doody"
Try
db.Connect Then
db.Decrypt
Catch error As DatabaseException
// handle error here
End Try