# Is there interest in the WASM build?

**URL:** <https://discuss.zetetic.net/t/is-there-interest-in-the-wasm-build/5922>\
**Category:** Issues\
**Created:** [May 10, 2023, 11:45am UTC](https://discuss.zetetic.net/t/is-there-interest-in-the-wasm-build/5922 "2023-05-10T11:45:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mch](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/mch/32/2003_2.png) [@mch](https://discuss.zetetic.net/u/mch)\
**Post date:** [May 10, 2023, 11:45am UTC](https://discuss.zetetic.net/t/is-there-interest-in-the-wasm-build/5922/1 "2023-05-10T11:45:01Z")

</div>

I have a browser based project where I want to use an encrypted database. SQLite already has a WASM build that can use Origin Private File System for storage, and I managed to get sqlcipher building for WASM as well. I used a WASM build of OpenSSL for encryption, but had to comment out the use of mlock due to limitations in the WASM memory model.

It’s in a very hacky state right now, but I was wondering if it would be worth cleaning up and contributing. I’m also not sure how the removal of mlock affects security.

If Zetetic is interested, let me know and I’ll sign the CLA see if I can get a PR together.

---

<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:** [May 10, 2023, 2:16pm UTC](https://discuss.zetetic.net/t/is-there-interest-in-the-wasm-build/5922/2 "2023-05-10T14:16:02Z")

</div>

Hello @mch - thanks so much for getting in touch about this. We’d definitely be interested in taking a look at what you’ve put together. I’m pretty sure we can work around the mlock issue via macro. Please reach out to us at [support@zetetic.net](mailto:support@zetetic.net) and we’ll get the CLA over to you as a next step. Thanks!

---

<div class="post-metadata">

**Author:** ![smerschjohann](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/smerschjohann/32/2024_2.png) [@smerschjohann](https://discuss.zetetic.net/u/smerschjohann)\
**Post date:** [June 8, 2023, 7:04am UTC](https://discuss.zetetic.net/t/is-there-interest-in-the-wasm-build/5922/3 "2023-06-08T07:04:43Z")

</div>

I’m also very interested in this. Any progress so far? I would even be interested in a hacky state for now.

---

<div class="post-metadata">

**Author:** ![mch](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/mch/32/2003_2.png) [@mch](https://discuss.zetetic.net/u/mch)\
**Post date:** [June 11, 2023, 4:34pm UTC](https://discuss.zetetic.net/t/is-there-interest-in-the-wasm-build/5922/4 "2023-06-11T16:34:03Z")

</div>

Hi, here is a blog post on the hacky state: [Hacky SQLCipher WASM build](https://blog.mattchughes.ca/2023/06/11/sqlcipher-wasm-build/)

My changes are in the most recent two commits on this branch: [GitHub - mch/sqlcipher at wasm](https://github.com/mch/sqlcipher/tree/wasm), but because it’s no where near production ready there are a lot of manual steps to get it going, as documented in the blog post.

---

<div class="post-metadata">

**Author:** ![mch](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/mch/32/2003_2.png) [@mch](https://discuss.zetetic.net/u/mch)\
**Post date:** [June 18, 2023, 5:05pm UTC](https://discuss.zetetic.net/t/is-there-interest-in-the-wasm-build/5922/5 "2023-06-18T17:05:26Z")

</div>

Ooops I broke the link: [Hacky SQLCipher WASM Build - The Half-Bakery](https://blog.mattchughes.ca/2023/06/11/hacky-sqlcipher-wasm-build/)

---

<div class="post-metadata">

**Author:** ![wire-simon](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@wire-simon](https://discuss.zetetic.net/u/wire-simon)\
**Post date:** [October 31, 2024, 9:56am UTC](https://discuss.zetetic.net/t/is-there-interest-in-the-wasm-build/5922/6 "2024-10-31T09:56:40Z")

</div>

Hi @mch, hi @sjlombardo,

Is there any update on this? We would also be very interested in this.

Cheers

---

<div class="post-metadata">

**Author:** ![mch](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/mch/32/2003_2.png) [@mch](https://discuss.zetetic.net/u/mch)\
**Post date:** [October 31, 2024, 1:32pm UTC](https://discuss.zetetic.net/t/is-there-interest-in-the-wasm-build/5922/7 "2024-10-31T13:32:47Z")

</div>

Hi, I haven’t been working on this, or even keeping my repo up to date with zetetic’s. I don’t have any plans to do anything with this in the immediate future.

mch
