I\'m using the below piece of code to encrypt and decrypt the database i\'m able to encrypt but when i\'m trying to decrypt i\'m getting the below exception.I referred this
You do not need to set cipher_default_use_hmac
to off
in the preKey
event when you attempt to decrypt the database. It is not being disabled when you encrypt the database so an HMAC is being included for every page of the database. Try removing your SQLiteDatabaseHook
from the decryption function. Also, consider joining the SQLCipher Mailing List for these type of discussions.