Hello,
i am trying to use smack 4.4.0 with android. For now, here is what I can do:
-connect to the server
-authenticate me and send an unencrypted message
My server is ejabberd.
Now I want to use OMEMO to encrypt the messages. I see there is OpenGPG. I don’t know which is more effective, so I took OMEMO.
But I can’t send an encrypted message.
I’ve been looking for 4 days and trying to understand. Now I need help.
Here is the tutorial I followed: https://github.com/igniterealtime/Smack/blob/master/documentation/extensions/omemo.md
I’m desperate, really desperate.
Here are the dependencies I am using in android studio:
In Case you are interested in OpenPGP then there is thread I started and have sample code. I will try to find out later but search should help you on that. As of general Encryption with Smack, I have found OMEMO license as not friendly to closed source software. OpenPGP (OX IM) is free but does not yet support Group chats. So you can only encrypt On-on-One messages only!
It’s normal?
If not, how to solve this.
In fact I use an android emulator and a huawei phone for my tests
I confirm that the bundle: -1 comes from the huawei, not from the emulator, because when I display the device of each one, for the huawei I have this: user@domain.net:-1
and that of the emulator is:
user2@domain.net:21137227720
Isn’t that the problem?
Here is the error I get: user2@domain.net:21137227720 cannot establish session with user@domain.net:-1 because their bundle could not be fetched.
There is some DSL (AbstractTwoUsersOmemoTest, OmemoSetupHelper) to make the testing easier, but you should be able to understand the requirements from looking at the tests.
thank you very much
With OpenPGP it’s easier.
Just one question: can I continue with openPgp safely for reliable secure communication? really reliable?
Could I make audio and video calls with OpenPGP?
If so I will rather use OpenPGP and leave OMEMo for later
In any case, thank you for the link which helped me a lot, in one evening I was able to understand and implement the concept.
I can send an encrypted message via OpenPgP.
If you reassure me that I can use this safely then I’ll go for it. Also what are the limits compared to OMEMO?