pion / srtp

A Go implementation of SRTP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add examples that encrypt/decrypt RTP packets from disk

seamanm opened this issue · comments

where is srtp demo

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

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

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

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

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

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.

thank you so much,I learn srtp decrypt