Difference between revisions of "SQLiteDatabase.Decrypt"

From Xojo Documentation

m (Example)
m (Example)
Line 20: Line 20:
 
   db.Decrypt
 
   db.Decrypt
 
Else
 
Else
   //handle error here
+
   // handle error here
 
End If
 
End If
 
</rbcode>
 
</rbcode>

Revision as of 20:07, 3 January 2018

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:

Dim db As New SQLiteDatabase
db.DatabaseFile = GetFolderItem("db.sqlite")
db.EncryptionKey = "howdy+doody"
If db.Connect Then
db.Decrypt
Else
// handle error here
End If