srtp icon indicating copy to clipboard operation
srtp copied to clipboard

Add examples that encrypt/decrypt RTP packets from disk

Open seamanm opened this issue 4 years ago • 7 comments

where is srtp demo

seamanm avatar Oct 09 '20 09:10 seamanm

@seamanm I am happy to add one, what example would you like to see?

Sean-Der avatar Oct 09 '20 16:10 Sean-Der

if you can ,we need a demo srtp client push stream to srtp server

seamanm avatar Oct 10 '20 03:10 seamanm

I already have hardware that supports the SRTP protocol, but I don't have an SRTP server

seamanm avatar Oct 10 '20 03:10 seamanm

Hey @seamanm I think you want a RTSP Client/Server. SRTP is encryption. https://github.com/djwackey/dorsvr looks promising.

Sean-Der avatar Oct 10 '20 03:10 Sean-Der

hey @Sean-Der ,thank for you answer this issue. The example of RTSP I already have, I hope there is an example of SRTP. SRTP server and SRTP client

seamanm avatar Oct 10 '20 05:10 seamanm

I will add an example that shows how to encrypt a RTP packet and then another how to decrypt. I think that will be helpful.

SRTP doesn't have a concept of Client/Server. You just give it keying material, and then it processes RTP packets in a stream. Most people use DTLS to do key exchange and get a client/server feeling.

Then do a DTLS handshake, then extract the keying material. pion/webrtc is a good example of this.

Sean-Der avatar Oct 10 '20 05:10 Sean-Der

thank you so much,I learn srtp decrypt

seamanm avatar Oct 10 '20 07:10 seamanm