Encrypt/Decrypt existing database using SQLCipher in Android

后端 未结 1 525
眼角桃花
眼角桃花 2020-12-29 17:31

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

相关标签:
1条回答
  • 2020-12-29 17:37

    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.

    0 讨论(0)
提交回复
热议问题