# OpenFHE ports/wrappers

**URL:** https://openfhe.discourse.group/c/openfhe-ports/9.md

[Latest](https://openfhe.discourse.group/latest.md) · [Categories](https://openfhe.discourse.group/categories.md) · [Tags](https://openfhe.discourse.group/tags.md)

---

## [About the OpenFHE ports/wrappers category](https://openfhe.discourse.group/t/about-the-openfhe-ports-wrappers-category/18)

<div class="topic-metadata">

**Author:** [@iquah](https://openfhe.discourse.group/u/iquah)\
**Replies:** 0

</div>

Topics related to official and unofficial ports of OpenFHE Ask questions, reports bugs, and find more information about various language ports of OpenFHE

---

## [OpenFHE for iOS](https://openfhe.discourse.group/t/openfhe-for-ios/1030)

<div class="topic-metadata">

**Author:** [@tkajava](https://openfhe.discourse.group/u/tkajava)\
**Replies:** 4\
**Last updated:** [March 2, 2026, 1:12pm UTC](https://openfhe.discourse.group/t/openfhe-for-ios/1030 "2026-03-02T13:12:42Z")

</div>

Has somebody succeed to build it for iOS?

---

## [About a ioS and Android port](https://openfhe.discourse.group/t/about-a-ios-and-android-port/1258)

<div class="topic-metadata">

**Author:** [@Sukantag](https://openfhe.discourse.group/u/Sukantag)\
**Replies:** 2\
**Last updated:** [February 27, 2026, 6:50pm UTC](https://openfhe.discourse.group/t/about-a-ios-and-android-port/1258 "2026-02-27T18:50:47Z")

</div>

Hi, Is there a iOS and Android port of OpenFHE ? anybody has tried it or is there a version somewhere I can try out? Please let me know Thx S

---

## [Deserialization failure in OpenFHE when sending serialized keys from JS (WASM) to C++ backend via Base64](https://openfhe.discourse.group/t/deserialization-failure-in-openfhe-when-sending-serialized-keys-from-js-wasm-to-c-backend-via-base64/2260)

<div class="topic-metadata">

**Author:** [@Ana](https://openfhe.discourse.group/u/Ana)\
**Replies:** 2\
**Last updated:** [January 19, 2026, 11:48pm UTC](https://openfhe.discourse.group/t/deserialization-failure-in-openfhe-when-sending-serialized-keys-from-js-wasm-to-c-backend-via-base64/2260 "2026-01-19T23:48:06Z")

</div>

Hello, I am building a client–server application using OpenFHE, where the client side runs in JavaScript using OpenFHE compiled to WebAssembly (via Emscripten), and the server side is a C++ backend. On the client side,…

---

## [Measuring size of bootstrapping keys](https://openfhe.discourse.group/t/measuring-size-of-bootstrapping-keys/2234)

<div class="topic-metadata">

**Author:** [@clemens](https://openfhe.discourse.group/u/clemens)\
**Replies:** 1\
**Last updated:** [December 24, 2025, 9:45pm UTC](https://openfhe.discourse.group/t/measuring-size-of-bootstrapping-keys/2234 "2025-12-24T21:45:46Z")

</div>

Hi, I am trying to measure the size of the bootstrapping keys for different parameter sets using the python wrapper. Currently, I am measuring them as follows: auto\_ser = SerializeEvalAutomorphismKeyString(BINARY, “”…

---

## [128-bit mode does not work in Python](https://openfhe.discourse.group/t/128-bit-mode-does-not-work-in-python/2226)

<div class="topic-metadata">

**Author:** [@clemens](https://openfhe.discourse.group/u/clemens)\
**Replies:** 3\
**Last updated:** [December 2, 2025, 6:48pm UTC](https://openfhe.discourse.group/t/128-bit-mode-does-not-work-in-python/2226 "2025-12-02T18:48:05Z")

</div>

Hi, I installed openfhe in 128-bit mode on a fresh system using cmake -DNATIVE\_SIZE=128 .. (on v1.4.2) and then installed openfhe on v1.4.2.0.24.4. However, when running the example advanced-real-numbers-128.py I get t…

---

## [DeserializeCiphertext from a byte string in memory in OpenFHE-Python](https://openfhe.discourse.group/t/deserializeciphertext-from-a-byte-string-in-memory-in-openfhe-python/2099)

<div class="topic-metadata">

**Author:** [@colomr32](https://openfhe.discourse.group/u/colomr32)\
**Replies:** 2\
**Last updated:** [July 22, 2025, 8:49am UTC](https://openfhe.discourse.group/t/deserializeciphertext-from-a-byte-string-in-memory-in-openfhe-python/2099 "2025-07-22T08:49:33Z")

</div>

Hi, I’m using OpenFHE with the BFV scheme in Python. I serialize a ciphertext with Serialize(ct, BINARY), send it over the network as base64, then decode it back to bytes. Is there a way to call DeserializeCiphertext() …

---

## [Accessing individual ciphertext components in OpenFHE-Python](https://openfhe.discourse.group/t/accessing-individual-ciphertext-components-in-openfhe-python/2081)

<div class="topic-metadata">

**Author:** [@Emmaka](https://openfhe.discourse.group/u/Emmaka)\
**Replies:** 4\
**Last updated:** [July 15, 2025, 1:58pm UTC](https://openfhe.discourse.group/t/accessing-individual-ciphertext-components-in-openfhe-python/2081 "2025-07-15T13:58:30Z")

</div>

I know it is possible to access the individual CKKS ciphertext components ( ct\_0 and ct\_1 ) in openfhe c++ lib. I am using openfhe-python for my project and it is not available in the openfhe python. Do you guys have any…

---

## [Conversion of Ciphertext to string](https://openfhe.discourse.group/t/conversion-of-ciphertext-to-string/1338)

<div class="topic-metadata">

**Author:** [@cjoph](https://openfhe.discourse.group/u/cjoph)\
**Replies:** 5\
**Last updated:** [June 3, 2025, 8:56am UTC](https://openfhe.discourse.group/t/conversion-of-ciphertext-to-string/1338 "2025-06-03T08:56:47Z")

</div>

Hello, I am using the Python Wrapper in a project. Is there a function in the Python wrapper that allows the conversion of ciphertext to string?

---

## [Cannot pickle 'openfhe.Ciphertext' object](https://openfhe.discourse.group/t/cannot-pickle-openfhe-ciphertext-object/2042)

<div class="topic-metadata">

**Author:** [@g\_tasop](https://openfhe.discourse.group/u/g_tasop)\
**Replies:** 2\
**Last updated:** [June 3, 2025, 8:45am UTC](https://openfhe.discourse.group/t/cannot-pickle-openfhe-ciphertext-object/2042 "2025-06-03T08:45:32Z")

</div>

Hello, I am trying to use multiple processes to evaluate multiple ciphertexts in the same time, by using openfhe-python (version 1.3.0.0). To do so, I tried to implement a simple toy example with BFV by using the python …

---

## [PR comments and update for openfhe-python](https://openfhe.discourse.group/t/pr-comments-and-update-for-openfhe-python/1869)

<div class="topic-metadata">

**Author:** [@ai-mannamalai](https://openfhe.discourse.group/u/ai-mannamalai)\
**Replies:** 5\
**Last updated:** [May 20, 2025, 10:48pm UTC](https://openfhe.discourse.group/t/pr-comments-and-update-for-openfhe-python/1869 "2025-05-20T22:48:18Z")

</div>

Hi there: I’m contributing to OpenFHE Python from last year; today I’m pushing a new PR to allow for len() method for Ciphertext and Keys in Openfhe-Python/dev branch here. Besides, I have reviewed the other two pendin…

---

## [Availability of a C API](https://openfhe.discourse.group/t/availability-of-a-c-api/1981)

<div class="topic-metadata">

**Author:** [@sloede](https://openfhe.discourse.group/u/sloede)\
**Replies:** 2\
**Last updated:** [April 9, 2025, 7:46am UTC](https://openfhe.discourse.group/t/availability-of-a-c-api/1981 "2025-04-09T07:46:40Z")

</div>

I was wondering: Is there - or is it planned to create - a C API planned for OpenFHE? If yes, it would make it much easier to provide bindings to OpenFHE in other programming languages. Nearly all modern programming lang…

---

## [Problem with Python Serialization](https://openfhe.discourse.group/t/problem-with-python-serialization/1859)

<div class="topic-metadata">

**Author:** [@Antox](https://openfhe.discourse.group/u/Antox)\
**Replies:** 8\
**Last updated:** [February 14, 2025, 3:49am UTC](https://openfhe.discourse.group/t/problem-with-python-serialization/1859 "2025-02-14T03:49:15Z")

</div>

Hello! I’m having an issue in running serialization procedures: the example in bin/examples in python all throw the error “RuntimeError: /usr/local/include/openfhe/pke/cryptocontext.h:l.280:TypeCheck(): Ciphertext was no…

---

## [Will CKKS be added to wasm port?](https://openfhe.discourse.group/t/will-ckks-be-added-to-wasm-port/1854)

<div class="topic-metadata">

**Author:** [@ChristianF](https://openfhe.discourse.group/u/ChristianF)\
**Replies:** 1\
**Last updated:** [February 6, 2025, 5:17am UTC](https://openfhe.discourse.group/t/will-ckks-be-added-to-wasm-port/1854 "2025-02-06T05:17:19Z")

</div>

Hi, I’m wondering if CKKS will be added to the wasm port? I ran the example file simple\_real\_numbers, which seems to fail in creating the ckks context. I lack the knowledge but I’ve tried to manually include dependencie…

---

## [Python classes that wrap OpenFHE-python Ciphertexts](https://openfhe.discourse.group/t/python-classes-that-wrap-openfhe-python-ciphertexts/1858)

<div class="topic-metadata">

**Author:** [@adolgert](https://openfhe.discourse.group/u/adolgert)\
**Replies:** 0\
**Last updated:** [February 4, 2025, 3:02pm UTC](https://openfhe.discourse.group/t/python-classes-that-wrap-openfhe-python-ciphertexts/1858 "2025-02-04T15:02:21Z")

</div>

For all of you using OpenFHE-Python, have you found yourself writing a Python class that is a facade over the OpenFHE-Python versions of the CryptoContext, Plaintext, and Ciphertext? I’m asking because I found it useful …

---

## [Serialization and Deserialization](https://openfhe.discourse.group/t/serialization-and-deserialization/1746)

<div class="topic-metadata">

**Author:** [@Nicol](https://openfhe.discourse.group/u/Nicol)\
**Replies:** 3\
**Last updated:** [November 27, 2024, 8:29pm UTC](https://openfhe.discourse.group/t/serialization-and-deserialization/1746 "2024-11-27T20:29:35Z")

</div>

Hi, I’m using Openfhe-Python, I serialized a list of ciphertext to a file, how do I deserialize that file to return the list because when I deserialize, it returns only one ciphertext, and also how can I serialize differ…

---

## [Saving of Public and Private Key to a file](https://openfhe.discourse.group/t/saving-of-public-and-private-key-to-a-file/1744)

<div class="topic-metadata">

**Author:** [@Nicol](https://openfhe.discourse.group/u/Nicol)\
**Replies:** 1\
**Last updated:** [November 25, 2024, 2:25pm UTC](https://openfhe.discourse.group/t/saving-of-public-and-private-key-to-a-file/1744 "2024-11-25T14:25:15Z")

</div>

How can I save the generated public and private key to a file and also load them from that file and also, how do I serialize and deserialize in OpenFHE-Python.

---

## [Module Not found Error](https://openfhe.discourse.group/t/module-not-found-error/1736)

<div class="topic-metadata">

**Author:** [@Nicol](https://openfhe.discourse.group/u/Nicol)\
**Replies:** 2\
**Last updated:** [November 23, 2024, 9:30pm UTC](https://openfhe.discourse.group/t/module-not-found-error/1736 "2024-11-23T21:30:31Z")

</div>

I tried running Openfhe-python example but got error. Below is the error message

---

## [EvalPoly, EvalSumCols, EvalSumRows only works for CKKS](https://openfhe.discourse.group/t/evalpoly-evalsumcols-evalsumrows-only-works-for-ckks/1727)

<div class="topic-metadata">

**Author:** [@g\_tasop](https://openfhe.discourse.group/u/g_tasop)\
**Replies:** 2\
**Last updated:** [November 19, 2024, 11:08am UTC](https://openfhe.discourse.group/t/evalpoly-evalsumcols-evalsumrows-only-works-for-ckks/1727 "2024-11-19T11:08:22Z")

</div>

In the documentation of the openfhe-python wrapper there are some advanced functions which are sometimes only available for CKKS. This is noted explicitly for some of them, e.g EvalPolyLinear, but I found it missing for …

---

## [CKKS threshold rotation using OpenFHE Python Wrapper](https://openfhe.discourse.group/t/ckks-threshold-rotation-using-openfhe-python-wrapper/1656)

<div class="topic-metadata">

**Author:** [@Luminos](https://openfhe.discourse.group/u/Luminos)\
**Replies:** 1\
**Last updated:** [October 21, 2024, 8:25pm UTC](https://openfhe.discourse.group/t/ckks-threshold-rotation-using-openfhe-python-wrapper/1656 "2024-10-21T20:25:36Z")

</div>

Hi guys, I am looking for a way to carry out ciphertext rotation in threshold setting using the OpenFHE Python Wrapper. I understand this is doable in a single key scenario via EvalAtIndexKeyGen to generate the key for r…

---

## [Installation of OpenFHE Python wrapper fails](https://openfhe.discourse.group/t/installation-of-openfhe-python-wrapper-fails/1611)

<div class="topic-metadata">

**Author:** [@DenisRed](https://openfhe.discourse.group/u/DenisRed)\
**Replies:** 1\
**Last updated:** [October 3, 2024, 9:13pm UTC](https://openfhe.discourse.group/t/installation-of-openfhe-python-wrapper-fails/1611 "2024-10-03T21:13:44Z")

</div>

Hello guys, I’m trying to install the OpenFHE Python wrapper but cmake .. fails. I followed the instructions for Conda on https://github.com/openfheorg/openfhe-python/tree/main, but it fails with the following error: …

---

## [Installing OpenFHE python wrapper](https://openfhe.discourse.group/t/installing-openfhe-python-wrapper/1602)

<div class="topic-metadata">

**Author:** [@mahta](https://openfhe.discourse.group/u/mahta)\
**Replies:** 3\
**Last updated:** [September 24, 2024, 2:08pm UTC](https://openfhe.discourse.group/t/installing-openfhe-python-wrapper/1602 "2024-09-24T14:08:47Z")

</div>

Hello, I have been trying to install the Python wrapper on my Windows with conda based on the instructions provided in GitHub - openfheorg/openfhe-python: Official Python wrapper for OpenFHE. Current release is v0.8.9 (…

---

## [Serialize and Deserialize between wasm and python](https://openfhe.discourse.group/t/serialize-and-deserialize-between-wasm-and-python/1155)

<div class="topic-metadata">

**Author:** [@Pavanranganath](https://openfhe.discourse.group/u/Pavanranganath)\
**Replies:** 4\
**Last updated:** [September 17, 2024, 11:49pm UTC](https://openfhe.discourse.group/t/serialize-and-deserialize-between-wasm-and-python/1155 "2024-09-17T23:49:23Z")

</div>

Hello, I comprehend that the WebAssembly (openfhe-Wasm) library is still under development and may not be fully stable. In my usage, I employed the Wasm library to serialize ciphertext, but encountered an error when att…

---

## [Data Leak in python wrapper](https://openfhe.discourse.group/t/data-leak-in-python-wrapper/1527)

<div class="topic-metadata">

**Author:** [@JuriusStep](https://openfhe.discourse.group/u/JuriusStep)\
**Replies:** 1\
**Last updated:** [September 11, 2024, 1:37pm UTC](https://openfhe.discourse.group/t/data-leak-in-python-wrapper/1527 "2024-09-11T13:37:27Z")

</div>

By examples: simple-real-numbers-serial.py key-rot grows to 2.6GB, if i changed: multDepth = 20; scaleModSize = 50; batchSize = 16; In c++ Develop is it about 356MB Key\_mult in wrapper and main development get …

---

## [Python wrapper error](https://openfhe.discourse.group/t/python-wrapper-error/1488)

<div class="topic-metadata">

**Author:** [@JuriusStep](https://openfhe.discourse.group/u/JuriusStep)\
**Replies:** 1\
**Last updated:** [August 15, 2024, 12:38am UTC](https://openfhe.discourse.group/t/python-wrapper-error/1488 "2024-08-15T00:38:54Z")

</div>

in example ckks-bootstrapping, in main development: std::cout \<\< "Number of levels remaining after bootstrapping: " \<\< depth - ciphertextAfter-\>GetLevel() - (ciphertextAfter-\>GetNoiseScaleDeg() - 1) \<\< std::endl \<\< s…

---

## [In python wrapper methode GetElements() not works](https://openfhe.discourse.group/t/in-python-wrapper-methode-getelements-not-works/1436)

<div class="topic-metadata">

**Author:** [@evgen](https://openfhe.discourse.group/u/evgen)\
**Replies:** 4\
**Last updated:** [August 6, 2024, 8:43pm UTC](https://openfhe.discourse.group/t/in-python-wrapper-methode-getelements-not-works/1436 "2024-08-06T20:43:13Z")

</div>

c1 = cc.Encrypt(keys.publicKey, ptx1) In python wrapper by calling methode: c1.GetElements() i get error: ‘openfhe.Ciphertext’ object has no attribute ‘GetElements’ In openfhe development this methode works

---

## [Serialize/deserialize evalSumRowKeys and evalSumColKeys in Python](https://openfhe.discourse.group/t/serialize-deserialize-evalsumrowkeys-and-evalsumcolkeys-in-python/1357)

<div class="topic-metadata">

**Author:** [@oleg.fatyukhin](https://openfhe.discourse.group/u/oleg.fatyukhin)\
**Replies:** 7\
**Last updated:** [July 1, 2024, 8:02am UTC](https://openfhe.discourse.group/t/serialize-deserialize-evalsumrowkeys-and-evalsumcolkeys-in-python/1357 "2024-07-01T08:02:52Z")

</div>

Hello! Please, help me! How can I serialize/deserialize the openfhe.EvalKeyMap structure to a file in Python? More specifically, how to serialize/deserialize evalSumRowKeys (evalSumRowKeys = cryptocontext.EvalSumRowsKeyG…

---

## [Missing functions in python wrapper, in examples](https://openfhe.discourse.group/t/missing-functions-in-python-wrapper-in-examples/1391)

<div class="topic-metadata">

**Author:** [@evgen](https://openfhe.discourse.group/u/evgen)\
**Replies:** 1\
**Last updated:** [June 30, 2024, 6:36pm UTC](https://openfhe.discourse.group/t/missing-functions-in-python-wrapper-in-examples/1391 "2024-06-30T18:36:09Z")

</div>

In simple-real-numbers.py is missing print fuction for ptAdd and function for precision = 8

---

## [ThresholdFHE Generation of EvalSumKeys using the OpenFHE Python Wrapper](https://openfhe.discourse.group/t/thresholdfhe-generation-of-evalsumkeys-using-the-openfhe-python-wrapper/1273)

<div class="topic-metadata">

**Author:** [@daamesaeh](https://openfhe.discourse.group/u/daamesaeh)\
**Replies:** 2\
**Last updated:** [May 18, 2024, 6:25am UTC](https://openfhe.discourse.group/t/thresholdfhe-generation-of-evalsumkeys-using-the-openfhe-python-wrapper/1273 "2024-05-18T06:25:11Z")

</div>

Good day. I would just like to ask about the generation of EvalSumKeys using the OpenFHE Python wrapper.The EvalSumKeyMap is no longer a compatible function argument of SerializeToFile, but I need the EvalSum function i…

---

## [Error in CMakelist.txt](https://openfhe.discourse.group/t/error-in-cmakelist-txt/1168)

<div class="topic-metadata">

**Author:** [@Toscrack](https://openfhe.discourse.group/u/Toscrack)\
**Replies:** 8\
**Last updated:** [May 7, 2024, 9:01pm UTC](https://openfhe.discourse.group/t/error-in-cmakelist-txt/1168 "2024-05-07T21:01:51Z")

</div>

Hi everyone. I’m trying to write my first program in Python by using the library (already made in C++ language); I followed the steps posted here (GitHub - openfheorg/openfhe-python at docker) but I’m stuck when running…

[Next page](https://openfhe.discourse.group/c/openfhe-ports/9.md?page=1)
