SQLITE_AUTH (23) Error when using SQLCipher

When using Commercial or Enterprise packages you must call PRAGMA cipher_license with a valid license code prior to executing cryptographic operations on an encrypted database.

Failure to provide a license code, or use of an expired trial code, will result in an SQLITE_AUTH (23) error code reported from the SQLite API (or an equivalent exception from the wrapping library). The general syntax follows:

PRAGMA cipher_license = 'OmNpZDowMDFHMDA...';

When you log into the customer fulfillment site as a customer, you will see your license license key at the top of the page, something like this:

Trial licenses, available prior to purchase, are valid for 15 days of testing.