telehash / telehash.github.io

Contents of the site
http://telehash.org/
Other
483 stars 59 forks source link

Double E2E encryption in case of WebRTC #93

Closed Kagami closed 9 years ago

Kagami commented 9 years ago

Hi. I read through the docs and it seems to be you are planning to support the WebRTC transport. Telehash requires encryption of all data in the stream but WebRTC already has its own end-to-end encryption (DTLS/DTLS-SRTP) so it would result in some overhead. What do you think? Should telehash has an option to disable encryption (leaving signing of the messages) in case of direct peer-to-peer WebRTC channels? Or something like that.

dchote commented 9 years ago

At this point I'm not 100% certain of the fate of webrtc "over" telehash. There will be a parallel media over Telehash spec sometime soon, because as you say, there is a lot of functional duplication transporting the full webrtc protocol.

fd commented 9 years ago

I think kagami is referring to the webrtc transport (telehash over webrtc).

Yes webrtc has its own encryption but in the context of telehash webrtc only represents a single hop. So the telehash encryption is still needed.

dchote commented 9 years ago

My bad. I should have clicked the link

Kagami commented 9 years ago

@fd I agree with you that in case of bridging we can't trust router and should always encrypt packets. But I mentioned in issue the case when peers are connected directly and transfer information between each other. Why do they need to use telehash encryption on top of WebRTC one?

quartzjer commented 9 years ago

@Kagami somewhere I need to make a very definitive statement about the fundamental nature of telehash, that what you're describing is by design and an ideal use case.

I feel very strongly that all traffic should always use all available transport encryption, multiples of whenever possible. The fact that WebRTC has encryption between peers, /combined/ with the telehash end-to-end encryption, should be the default and desired configuration.

There is no such thing as too much crypto overhead now or ever again.