The SUPConnectionProfile class manages local database information. You can use it to set the encryption key, which you must do before creating a local database.
SUPConnectionProfile* cp = [SampleApp_SampleAppDB getConnectionProfile]; [cp setEncryptionKey:@"Your key"]; [SampleApp_SampleAppDB closeConnection];
If the encryption key is changed, or set in the connection profile, the closeConnection() API should be immediately called.