# \[Android\] Change OpenSSL used by SQL Cipher downloaded via Gradle dependency

**URL:** <https://discuss.zetetic.net/t/android-change-openssl-used-by-sql-cipher-downloaded-via-gradle-dependency/6778>\
**Category:** SQLCipher\
**Created:** [January 6, 2025, 12:30pm UTC](https://discuss.zetetic.net/t/android-change-openssl-used-by-sql-cipher-downloaded-via-gradle-dependency/6778 "2025-01-06T12:30:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PiotrKlis](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/piotrklis/32/1957_2.png) [@PiotrKlis](https://discuss.zetetic.net/u/PiotrKlis)\
**Post date:** [January 6, 2025, 12:30pm UTC](https://discuss.zetetic.net/t/android-change-openssl-used-by-sql-cipher-downloaded-via-gradle-dependency/6778/1 "2025-01-06T12:30:19Z")

</div>

Hi,

we use Android SQL Cipher downloaded to our SDK by the Gradle dependency

```auto
  api "net.zetetic:sqlcipher-android:4.6.0@aar"

```

we got a request to change OpenSSL from default into custom one. I see that this is possible when building AAR package manually as instructions provided here [GitHub - sqlcipher/sqlcipher-android: SQLCipher for Android provides an interface to SQLCipher databases on the Android platform.](https://github.com/sqlcipher/sqlcipher-android?tab=readme-ov-file#external-dependencies)

Question - is it possible to include different OpenSSL used by the Android SQL Cipher library when downloading it by Gradle dependency or is it possible only when building AAR package manually?

---

<div class="post-metadata">

**Author:** ![sjlombardo](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/sjlombardo/32/3_2.png) [@sjlombardo](https://discuss.zetetic.net/u/sjlombardo)\
**Post date:** [January 6, 2025, 1:39pm UTC](https://discuss.zetetic.net/t/android-change-openssl-used-by-sql-cipher-downloaded-via-gradle-dependency/6778/2 "2025-01-06T13:39:42Z")

</div>

Hello @PiotrKlis - It would only be possible to include a different OpenSSL when building the library from source.

We also offer custom builds under the [SQLCipher Enterprise](https://www.zetetic.net/sqlcipher/enterprise/) program. If you are looking for an official prepackaged AAR using a custom OpenSSL version, feel free to [contact us](mailto:support@zetetic.net) if you’d like to discuss that option.

---

<div class="post-metadata">

**Author:** ![PiotrKlis](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/piotrklis/32/1957_2.png) [@PiotrKlis](https://discuss.zetetic.net/u/PiotrKlis)\
**Post date:** [January 7, 2025, 1:24pm UTC](https://discuss.zetetic.net/t/android-change-openssl-used-by-sql-cipher-downloaded-via-gradle-dependency/6778/3 "2025-01-07T13:24:06Z")

</div>

Thanks @sjlombardo for fast response. We’ll probably go with manual build of the library with our custom OpenSSL. You can close the topic 👍
