Skip to content
FoxcolabMessenger
Glossary

What is DTLS-SRTP?

DTLS-SRTP: DTLS-SRTP is how WebRTC encrypts call audio and video: DTLS sets up the keys, and SRTP encrypts each media packet as it travels.

Also called: SRTP, DTLS, Secure RTP

Updated

What is DTLS-SRTP? It is the combination of two protocols that WebRTC uses to encrypt the audio and video in a call. DTLS performs a secure handshake that agrees encryption keys, and SRTP uses those keys to encrypt and authenticate every audio and video packet. Together they stop anyone on the network from listening in or tampering with the call.

RTP, SRTP and DTLS in plain words

  • RTP, the Real-time Transport Protocol, carries live audio and video as a stream of small packets.
  • SRTP, Secure RTP, encrypts those packets and adds a check so that altered packets are rejected.
  • DTLS, Datagram Transport Layer Security, is a version of TLS designed for the fast, loss-tolerant connections calls use. It securely agrees the keys SRTP needs.

How the handshake works

When a call starts, each device creates a certificate and sends a fingerprint of it to the other side through the app's signaling server. The devices then run a DTLS handshake over the media path and check that the certificate they see matches the fingerprint they were given. If it matches, they derive fresh SRTP keys, so every call gets new keys.

Encrypted call or end-to-end encrypted call?

DTLS-SRTP always protects a call from people on the same Wi-Fi, your internet provider and anyone else on the path. Whether it is end to end depends on two things. First, the fingerprints travel through the app's signaling server, so unless users can verify them, they rely on trusting that server. Second, if a group call runs through a media server that terminates DTLS-SRTP, that server handles decrypted media. TURN relays are different: they only forward packets that stay encrypted.

That is why careful apps say encrypted calls unless they add extra protections, such as key verification between users or a second end-to-end encryption layer on top of SRTP.

What DTLS-SRTP does not cover

It protects audio and video in transit. It does not hide who called whom, when or for how long, and it cannot stop someone in the room recording your speakerphone. It also says nothing about the security of the phones themselves: malware on either device can capture a call before it is encrypted or after it is decrypted.

DTLS-SRTP in Foxcolab

Foxcolab's voice and video calls use WebRTC and connect peer to peer, so their audio and video are encrypted device to device with DTLS-SRTP, which protects them from anyone on the same Wi-Fi or network. The DTLS handshake runs between the devices, using details exchanged through Foxcolab's call signaling, and when a call needs a relay, Foxcolab's TURN servers only pass the encrypted media along and can't decode it.

How Foxcolab handles security

Frequently asked questions

Is SRTP encryption secure?

Yes. SRTP with keys from DTLS uses strong, standard ciphers and is required in every WebRTC call. The real question is not the cipher but who could get the keys.

Is DTLS the same as TLS?

DTLS is TLS adapted for datagrams, the kind of connection used for live media where some packets can be lost. It gives similar security.

Can a TURN server listen to my call?

In standard WebRTC, no. A TURN server relays packets that are already encrypted with SRTP and does not receive the keys.

Get Foxcolab for your family

Available on Google Play and the App Store. ₹49 once in India, with no subscription and no ads.