# \[C++\] Cannot use SQLCipher4 in CPP

**URL:** <https://discuss.zetetic.net/t/c-cannot-use-sqlcipher4-in-cpp/6613>\
**Category:** SQLCipher\
**Created:** [September 2, 2024, 11:27am UTC](https://discuss.zetetic.net/t/c-cannot-use-sqlcipher4-in-cpp/6613 "2024-09-02T11:27:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcoyee](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@marcoyee](https://discuss.zetetic.net/u/marcoyee)\
**Post date:** [September 2, 2024, 11:27am UTC](https://discuss.zetetic.net/t/c-cannot-use-sqlcipher4-in-cpp/6613/1 "2024-09-02T11:27:43Z")

</div>

I need to use SQLCipher4 HMAC\_SHA512 algo I do installed sqlcipher4, but I still cannot open a database that encrypted with HMAC\_SHA512 algo

Please help~

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zetetic/original/2X/a/ab147c6fa5c1c2423a61cd3d5434062b6c8e5c61.png)

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [September 4, 2024, 8:08pm UTC](https://discuss.zetetic.net/t/c-cannot-use-sqlcipher4-in-cpp/6613/2 "2024-09-04T20:08:27Z")

</div>

Hi @marcoyee,

It appears that your `connnect3.out` binary is using SQLCipher version 3.4.1 based on the output. Prior to SQLCipher version 4, `HMAC_SHA512` and `PBKDF2_HMAC_SHA512` was not supported within the library. You should consider rebuilding the SQLCipher library with the latest version, then link that into your application to support the 4.x features.
