kivy / python-for-android

Turn your Python application into an Android APK
https://python-for-android.readthedocs.io
MIT License
8.35k stars 1.86k forks source link

E2EE OMEMO support #2945

Open Neustradamus opened 10 months ago

Neustradamus commented 10 months ago

Can you add OMEMO?

Note that it can be removed:

Thanks in advance.

Julian-O commented 10 months ago

These look like pure python libraries. Why do you think they don't already work? What errors do you get?

This might be a support request rather than a feature request.

Neustradamus commented 10 months ago

@Julian-O: The XEP-0384 has been updated several times, several years ago and it is finished for:

Now it is:

Diff Tool:

Note: There is "XEP-0454: OMEMO Media sharing" too:

Julian-O commented 10 months ago

Let me see if I can summarise.

There was a PyPI library called omemo. It was a pure Python library, but depended on x3dh and cryptography. A recipe was added for v0.11.0 to python-for-android. I believe that recipe just makes sure that the dependencies are recognised.

Since then, omemo has been split into three different libraries: python-omemo and python-twomemo and python-old-omemo. They remain pure Python libraries, but depend on different libraries - libsodium (which has a recipe) and libxeddsa which doesn't.

You are asking for a recipe for these three libraries. I would suggest that we see if we can merely support libxeddsa and see if we can then use these pure Python packages without recipes.

Meanwhile, there is another related project on PyPI: omemo-backend-signal. Its GitHub has been archived. You are asking for the recipe to be removed; I can't see the harm in letting the old code continue to work.