CipherData

interface CipherData(source)

Reads per-connection cipher data.

The caller must close every Buffer returned here once done with it.

Functions

Link copied to clipboard
abstract fun cipherSalt(database: String = SQLITE_MAIN_DB_NAME): Buffer?

Returns the random cipher salt used for key derivation and stored in the database header of database, as a 32-byte hexadecimal-encoded string, or null if database does not exist or the connection is not encrypted.

Link copied to clipboard
abstract fun cipherSaltRaw(database: String = SQLITE_MAIN_DB_NAME): Buffer?

Returns the random cipher salt used for key derivation and stored in the database header of database, as a raw 16-byte value, or null if database does not exist or the connection is not encrypted.