Changing the encryption algorithm

Hello @korwinek - before we even address the conversion, we would strongly recommend against changing the database encryption algorithm. That feature does not work with all cryptographic providers, and PRAGMA cipheris deprecated; it will likely be removed from a future version of SQLCipher entirely. Furthermore, it is extremely unlikely that changing the encryption algorithm will have any meaningful impact on performance. Have you read the performance optimization guidelines for SQLCipher? If not, you should start there first, as those suggestions are likely to yield significant improvements in performance without changing the encryption algorithm in an unsupported way.