You can use ConnectionProfile.EncryptionKey to set the encryption key of a local database. Set the key during application initialization, and before creating or accessing the client database.
The length of the encyption key must not be less than 16 characters.
ConnectionProfile profile = <PkgName>DB.getConnectionProfile(); profile.setEncryptionKey(“Your key”);