Database

Encryption

  • Sets the passphrase used to crypt and decrypt an SQLCipher database.

    Call this method from Configuration.prepareDatabase, as in the example below:

    var config = Configuration()
    config.prepareDatabase { db in
        try db.usePassphrase("secret")
    }
    
  • Changes the passphrase used by an SQLCipher encrypted database.