How to encrypt a plaintext SQLite database to use SQLCipher (and avoid “file is encrypted or is not a database” errors)

A post was split to a new topic: SQLCipher for Java Desktop Application