Off-the-Record (OTR) Messaging [$1,000]
You mean beyond https?
it would be nice if it has some OTR for direct messaging
the idea of OTR implies in not saving the message on db?
Off-the-Record (OTR) Messaging
Allows you to have private conversations over instant messaging by providing:
Encryption
No one else can read your instant messages.
Authentication
You are assured the correspondent is who you think it is.
Deniability
The messages you send do not have digital signatures that are checkable by a third party. Anyone can forge messages after a conversation to make them look like they came from you. However, during a conversation, your correspondent is assured the messages he sees are authentic and unmodified.
Perfect forward secrecy
If you lose control of your private keys, no previous conversation is compromised.
I don't know if this implementation has been audited or not but https://github.com/arlolra/otr
Warning
This library hasn't been properly vetted by security researchers. Do not use in life and death situations!
And further reading on the state of otr https://github.com/arlolra/otr/issues/59
I think otr is the best option we have, audited or not, cryptocat uses it.
As said on arlolra/otr#59, pointed by @kumavis, just few other implementations are available, and otr4-em and node-otr4 aren't well compatible with Meteor, because we can't use client-side node packages.
It's indeed very easy to implement OTR using arlolra/otr. Just made a simple PoC Igor1201/otr.
Looks like this feature has more people interested than I expected. I'll raise its priority. :+1:
Can any of you guys do a Pull Request or create a fork with a proposed implementation?
Hi @Igor1201 can we work together to get your PoC to work on Rocket.Chat?
See #268
Problem with OTR is that it only works while both users are online.
I recommend using Axolotl instead, developed by Open WhisperSystems of TextSecure/Signal fame. It's like OTR but it supports secure asynchronous messaging, which is important because it's rare that everyone is online all the time. :)
There are lots of Axolotl libraries out there, available for both iOS, Android, and Web.
- https://github.com/WhisperSystems/Signal-iOS
- https://github.com/WhisperSystems/TextSecure-Browser/tree/libaxolotl/
- https://github.com/WhisperSystems/TextSecure
- https://github.com/joebandenburg/libaxolotl-javascript
- https://github.com/joebandenburg/libaxolotl-crypto-web
I agree with @taoeffect. OTR isn't optimal here.
FYI, this feature, regardless of how you implement it, really only makes sense for DMs (for now). Encrypting group conversations is extremely difficult, and with today's tech it would result in most of the other features of RocketChat having to be removed (like search).
You could have 2 types of groups, insecure groups and OTR groups.
You could have 2 types of groups, insecure groups and OTR groups.
The problem is that "OTR groups" do not exist (to my knowledge). Axolotl has support for groups. There is also np1sec being developed: https://equalit.ie/portfolio/np1sec/
I'd love to see this. If not for whole groups, it would be a good first step to at least add OTR for personal messages where only 2 endpoints are involved. That should be easy enough and great to keep private messages actually private. Being able to read everything as a sysadmin is not ideal and actually something that would keep us from using this software.
@cryptono how about safely storing chat history for private chats on the server? I would like to see a way to keep the (encrypted) history on server, so I can read it on multiple devices.
Of course this would require the user a way to remove the data, and decide how long to store the encrypted blobs.