Encrypt the Database

The following methods set or change encryption keys for the database.

-(void)setEncryptionKey:(SUPString)value

Sets the encryption key for the database in SUPConnectionProfile. Call this method before any database operations.

[cp setEncryptionKey:@”test”];
+(void)changeEncryptionKey:(SUPtring*) newKey

Changes the encryption key to the newKey value and saves the newKey value to the connection profile. Call this method after the call to createDatabase.

[SampleApp_SampleAppDB changeEncryptionKey:@"newkey" ];
(SUPString)encryptionKey

Retrieves the current encryption key from the SUPConnectionProfile.

[cp encryptionKey];