News for hackers. Stuff that matters.
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by pmlnr on Monday January 11, 2021 @03:48PM (#25736573)
I've been exploring options with a friend, their requirements:

1) option for large groups (around 250) This drops Signal out which has a limit of 150 on groups: https://support.signal.org/hc/en-us/articles/360007319331-Gr...

2) e2e encrypted (because it sounds good, not because people actually understand what it is), including groups. This drops Telegram out: no e2e rooms.

3) handles sending photos, videos, and voice messages. More or less kills XMPP, unless people are on the latest-and-greatest version of Conversations and maybe ChatSecure.

4) the maintaining organisation needs to be reasonably big with decent privacy.

5) usable for completely non technical generic population - meaning Tox is out as well.

As much as I dislike to admit it, this leaves Matrix, and nothing else. My problem with Matrix is that it's so resource hungry - both the servers and the clients - is that it's silly. Yes, I know "optimization is coming" but even Dendrite eats 1.5GB memory easily with a single user joining a few, medium sized, federated rooms (yes, I've tried).

Footnote: Threema... no. There is no need for yet another competing open source thing, there are enough with Signal, Matrix, and XMPP.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by Arathorn on Monday January 11, 2021 @04:17PM (#25737185)
Matrix's resource utilisation is improving very rapidly at the moment.

Dendrite is still in beta, and hasn't been tuned that much yet, but every release has had a substantial improvement. In other words, if you're not using today's release (0.3.5) you're on stale data. For context, dendrite.matrix.org (running 0.3.5) has ~5K users on it, and is in ~3K rooms spanning 162K users... and its RAM usage is stable at 488MB (occasionally spiking to 2GB during traffic spikes). This doesn't seem unreasonable at all for a chat server of that size. Meanwhile, Synapse has been steadily improving too.

On the client side, Hydrogen (https://hydrogen.element.io, https://github.com/vector-im/hydrogen-web) is our next-gen client implementation, which gives you full E2EE, complete with backup (I have no idea what Durov is banging on about in the OP) - and uses 14MB of RAM for an account in 3,000 rooms spanning 350K users (i.e. my personal one). This is an 100x improvement on Element Web which uses 1.4GB for the same account, although there's also a lot of optimisation that can be done there too.

If I was going to criticise Matrix, I'd focus more on the fact that there are still a lot of papercuts on Element's UX which are holding us back. We're painfully aware of this though and are trying to fix as rapidly as we can.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by snvzz on Monday January 11, 2021 @04:33PM (#25737506)
Hydrogen looks extremely promising due to its low resource usage, but urgently needs an easy way to verify its session from Element and easily migrate its keys.
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by snvzz on Monday January 11, 2021 @03:54PM (#25736695)
>2) e2e encrypted

As you haven't mentioned it: Supporting e2ee isn't enough. It must be the default, else the non-technically inclined will often end up not using e2ee.

>As much as I dislike to admit it, this leaves Matrix, and nothing else.

I'm in the same position. Never been a fan, but I have to support it, because that's really the only option, even if bloated.

I also tried running a server (synapse) with similar results. I have hopes for dendrite, but they've just been dampened by your report.

Fortunately, the client side is far more important, and there's some options there. Particularly, the web-based hydrogen is massively less resource-hungry than the web-based element, and nearly there featureset-wise.

>XMPP

I didn't even list that one, because e2ee is not the default, and support was added way too late in the protocol's trajectory.

>Signal

I mentioned it, but I'm actually not about to use it. The reason is that accounts are tied to phone lines. That's a non-starter for me.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by ring3711 on Tuesday January 12, 2021 @01:34AM (#25743184)
About XMPP, it's a protocol. So it's possible for there to be a client with e2e by default right? And the problem is there is no reasonable client like that right now, right?
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by pmlnr on Monday January 11, 2021 @03:56PM (#25736741)
> it was added way too late in the game.

That is not a thing with XMPP. The very essence of it is adding things in, and OMEMO is quite good.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by snvzz on Monday January 11, 2021 @04:02PM (#25736892)
I'm well aware of how XMPP works as I've been using it from the start.

It is with this knowledge that I cannot recommend XMPP.

e2ee should be at the core. Not as an entirely optional extension added decades after.

As I already stated, because I want the non-technical inclined to have privacy, I can only support options where e2ee is the default.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by kitkat_new on Monday January 11, 2021 @04:20PM (#25737244)
try having verified e2ee conversations with XMPP - good luck.
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by snvzz on Monday January 11, 2021 @04:30PM (#25737445)
I've been having them for over a decade.

The "only" problem is that it isn't easy, and thus most people do not use them at all.

Therefore, I cannot recommend XMPP.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by pmlnr on Monday January 11, 2021 @04:28PM (#25737418)
Doing it actively. Try Conversations.
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by kitkat_new on Monday January 11, 2021 @04:46PM (#25737741)
how many contacts with how many devices do you have there?

can't be many

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by CodeGlitch on Monday January 11, 2021 @05:20PM (#25738288)
How about email?

Seriously... setting up your own email server. All users use a web client (there are tonnes out there, with the option of using thicker clients).

Bots can be used to organise the groups, add new users, etc.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by pmlnr on Tuesday January 12, 2021 @02:31AM (#25743524)
I recommended it heavily, got dismissed immediately.
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by CodeGlitch on Monday January 11, 2021 @05:29PM (#25738477)
By the way before anyone shouts at me, I know email isn't E2E encrypted. As I've said before on HN: if you are looking to communicate securly, you shouldn't be using anyone else's infrastructure. That includes Signal et al.

Most people chatting to their friends and family don't need that level of security.

If you don't want China listening to you: don't use someone else's system.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by FabHK on Monday January 11, 2021 @06:55PM (#25740067)
You could even allow only emails to the same domain (handled on the same server itself). Then emails never leave the server, and people can access them with their favourite tool, such as web or IMAP/SMPT, which encrypts everything in transit these days, if set up properly, unless I'm mistaken.
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by thekyle on Monday January 11, 2021 @03:52PM (#25736671)
I'm all for end-to-end encryption, but if you have 250 people in the chat I'm not sure it'll be very effective. It only takes one of those people to leak the messages.

When you get into groups with hundreds of members I think Slack and Discord are probably the dominant chat apps there.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by snvzz on Monday January 11, 2021 @03:56PM (#25736731)
Non room members shouldn't be able to read the text in the room. That's quite basic.

As far as old messages goes, Matrix rooms do not allow new participants to see old history, unless explicitly enabled.

>if you have 250 people in the chat I'm not sure it'll be very effective. It only takes one of those people to leak the messages.

Ultimately, the system is only good when the members of a room deliberately leaking messages is the primary concern; It means the system is working as intended, thus privacy is a matter of trust on the conversation members, as it is away from keyboard.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by pmlnr on Monday January 11, 2021 @03:58PM (#25736796)
Neither does XMPP, given it doesn't store it ;)
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by snvzz on Monday January 11, 2021 @04:03PM (#25736917)
But XMPP has the non-trivial problem of e2ee as an extension added very late and not the default.

I can't suggest XMPP to non-technical people, because I know they'll end up talking to each other with neither e2ee nor awareness of lack of e2ee.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by kitkat_new on Monday January 11, 2021 @04:25PM (#25737343)
> Neither does XMPP, given it doesn't store it ;)

and how is it achieved when you want that? Standard feature that is expected by people using Telegram, Matrix, Slack, etc.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by pmlnr on Monday January 11, 2021 @04:32PM (#25737481)
Not by the people used to WhatsApp. That doesn't do it either.
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by pmlnr on Monday January 11, 2021 @03:53PM (#25736684)
Indeed. But ever since Whatsapp started advertising e2e, people want it.
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by thekyle on Monday January 11, 2021 @03:55PM (#25736726)
Well I'm glad to hear that e2e is a feature that's in demand. :)
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by pmlnr on Monday January 11, 2021 @03:58PM (#25736772)
That is not a good approach. Every piece of technology has it's place; requiring 2e2 encryption in a group of hundreds is a bad requirement.
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by hiq on Monday January 11, 2021 @04:48PM (#25737777)
> This drops Signal out which has a limit of 150 on groups

Your own link mentions "Size limit of 1000", where did you see 150?

To be fair that's for new groups, maybe the limit used to be lower. Or do you mean that in practice it's not usable beyond 150 people?

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by tulir on Monday January 11, 2021 @08:37PM (#25741160)
The page seems to have been updated recently to say 1000 instead of 150, definitely less than a month based on archive.org
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by pmlnr on Tuesday January 12, 2021 @02:30AM (#25743515)
3 days ago it was 150, I swear.
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by hiq on Tuesday January 12, 2021 @04:07AM (#25744176)
Well, it seems to be time to revisit your decision then!
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by FabHK on Monday January 11, 2021 @06:52PM (#25740008)
What about Wire (groups up to 500, e2e, handles photos etc, Swiss firm, easy to use)?

https://wire.com/en/products/personal-secure-messenger/

And why's Threema out? You can hardly complain that there is no solution to your needs, and then, when one is offered, say "no need for yet another solution"...

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by upofadown on Monday January 11, 2021 @04:00PM (#25736852)
>handles sending photos, videos, and voice messages More or less kills XMPP, unless people are on the latest-and-greatest version of Conversations and maybe ChatSecure.

Are there any popular XMPP clients that don't support "HTTP File Upload" at this point? I went looking for a list of those that do and had to give up. They all support it now.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by pmlnr on Monday January 11, 2021 @04:09PM (#25737012)
Well... that's complicated.

On it's own, XEP-0363 (HTTP File Upload) and OMEMO both work well everywhere, even in my horribly overpatched Pidgin.

But if you put the two together, Conversations, for example, will encrypt the message and encrypt the upload as well.

My Pidgin then will handle the message well, but display an url starting with aesgcm:// leading to the still encrypted file.

The question is then: is the correct behaviour what of Conversations is doing - encrypt the message and upload as well? If yes, is OMEMO a requirement to HTTP File Upload or the other way around?

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by rakoo on Monday January 11, 2021 @06:54PM (#25740047)
I feel like encryption before payload and OMEMO are 2 different layers like, say, TLS compression and HTTP compression.

When you send a pic in a conversation, the content-type of the resource is "image/*". It doesn't matter whether the image is encrypted, compressed on-the-fly, or whatever, the receiving end must "undo" all of it to present the intended resource to the user

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by m4lvin on Monday January 11, 2021 @04:25PM (#25737355)
Encrypting the message AND the upload seems a no-brainer to me, if you want to call it E2EE. If the upload would not be encrypted then the (admin of the) server running XEP-0363 HTTP File Upload could see the contents.
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by pmlnr on Monday January 11, 2021 @04:31PM (#25737462)
I agree. The part I don't see is then what plugin should handle which part, and how.

Most XMPP clients are plugin based as well. Should the OMEMO plugin then look for aesgcm:// urls, download it, and decrypt it, or should the http upload plugin look for the availability of encryption and try to decrypt?

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by m4lvin on Wednesday January 13, 2021 @11:35AM (#25764322)
That is only a question if HTTP upload and OMEMO are different plugins. With https://dino.im/ it also "just works" and as a user I do not care which part pf the program does what.
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by xorcist on Monday January 11, 2021 @05:42PM (#25738689)
Client authors should do what Conversations do. End users should probably stick with Conversations, for now.

There will always be hacky and badly implemented clients. It comes with the idea of an open specification. That doesn't mean we should use them as a point of comparison.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by yatralalala on Monday January 11, 2021 @04:14PM (#25737124)
Have you heard about Wire? Groups up to 500, when they switch to MLS protocol then thousands, e2e, Swiss based and it has kind of ok UI.
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by pmlnr on Monday January 11, 2021 @04:16PM (#25737162)
> has kind of ok UI

It has a single UI, so it's out. Wire specifically disallows anything 3rd party.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by FabHK on Monday January 11, 2021 @06:57PM (#25740092)
App is available on Android, iOS, Mac, Win, Linux though - what more do you need?
Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by 29083011397778 on Tuesday January 12, 2021 @12:24AM (#25742663)
A web-app that doesn't log me out every time I reboot, then warn me I'm "already logged in".

And an Android app that doesn't combine the slowness of iOS and Android would be nice. To be clear - their animations (to me) drag on too long (as one might say about iOS), and UI input takes a noticeable amount of time (which is commonly found on Android apps that aren't well-written).

While this may not be helpful for anyone looking to improve the apps, that's kinda more of the same point - nobody is allowed to make a better client, as it's against the Wire ToS. This is why there's no Matrix bridge.

Re:Why Isn’t Telegram End-to-End Encrypted by Default (2017) by kitkat_new on Monday January 11, 2021 @04:22PM (#25737296)
uninstalled it after I lost all history, because I didn't open the app often enough.

Found Matrix, happy with it. It likely will adopt MLS, too.

PS: these days swiss based is a bit of a stretch