Sealite Config
How SQLCipher reads and writes the file. DEFAULT matches SQLCipher 4, so files are interchangeable with net.zetetic:sqlcipher-android 4.x, SQLCipher for Apple platforms and the sqlcipher command line tool.
The configuration must describe the file: a database written with other settings fails to open with SealiteError.WRONG_KEY, exactly like a wrong key.
val legacy = SealiteConfig { compatibility = SealiteConfig.Compatibility.SQLCIPHER_3 }
// Java: SealiteConfig.builder().compatibility(Compatibility.SQLCIPHER_3).build()Built only through Builder, so options can be added in minor releases without breaking binaries.
Types
Builds a SealiteConfig; every option starts at the SQLCipher 4 default.
SQLCipher major-version defaults (cipher, KDF, HMAC, page size). New versions may be added in minor releases: keep an else branch when matching.
Properties
The SQLCipher major version whose defaults apply.
PBKDF2 iterations for SealiteKey.passphrase keys; null keeps the compatibility default. Raw keys do not run a key derivation. Lowering it weakens passphrase keys.