Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebRTC and Encryption?

We would like to be able to leverage WebRTC to provide video chat in several native iOS applications that we have developed for in-house/enterprise use (read: NOT for the Apple AppStore). However, due to the nature of our business, we'd like to be able to encrypt the video stream prior to transmission, and then decrypt it once it is received on the other end.

I've taken a quick look at the AppRTC demo to get a little familiar with WebRTC in general. I've also found a Java port of the demo that we can use as a starting point in standing up a WebRTC server. What I have no found, however, is any mention of encryption within WebRTC. Is this something that is supported within the protocol at all? If so, are there standard algorithms/keylengths specified for use? If it is not built into the protocol, is it something that could easily be incorporated as a sort of "extension" of WebRTC we would code ourselves?

I'd be very interested in any experiences you may have had or products you have worked with to accomplish anything similar to this.

like image 417
Shadowman Avatar asked Sep 08 '26 20:09

Shadowman


1 Answers

All your WebRTC components should be encrypted using DTLS. (source, spec)

Both Chrome and FireFox implement this. (source)

The use of plain RTP is specifically prohibited. (source)

like image 157
drnugent Avatar answered Sep 11 '26 11:09

drnugent



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!