Goffi. Good evening! On Mon, 06 Jan 2025 18:17:23 +0100 Goffi <goffi@goffi.org> wrote:
Hi and Happy New Year Schimon.
Le lundi 6 janvier 2025, 14:06:28 heure normale d’Europe centrale Schimon Jehudah a écrit :
However, I am thinking of encrypting the data, yet I do not how to implement such system which will be possible to decrypt only by the owner of the data, and I also do not know how to handle a situation in which an encryption key was lost.
There are currently 2 specified e2ee mechanisms for pubsub:
- XEP-0473: OpenPGP for XMPP Pubsub , this is probably what you want to use.
- XEP-0477: Pubsub Targeted Encryption, this is more for ad-hoc item encryption, and can be used with OMEMO (so you can have PFS). But in your use case, I thing that XEP-0473 is more adapted (and probably easier to implement).
Yes. I think that I will utilize XEP-0473: OpenPGP for XMPP Pubsub.
Note that Libervia implements both, if you wanna test your implementation.
Thank you very much for the advise! I will surely do so.
Best, Goffi
Regards, Schimon