Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples that encrypt/decrypt RTP packets from disk #103

Open
seamanm opened this issue Oct 9, 2020 · 7 comments
Open

Add examples that encrypt/decrypt RTP packets from disk #103

seamanm opened this issue Oct 9, 2020 · 7 comments

Comments

@seamanm
Copy link

seamanm commented Oct 9, 2020

where is srtp demo

@Sean-Der
Copy link
Member

Sean-Der commented Oct 9, 2020

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

@seamanm
Copy link
Author

seamanm commented Oct 10, 2020

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

@seamanm
Copy link
Author

seamanm commented Oct 10, 2020

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

@Sean-Der
Copy link
Member

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

@seamanm
Copy link
Author

seamanm commented Oct 10, 2020

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

@Sean-Der
Copy link
Member

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 Sean-Der changed the title where is srtp demo Add examples that encrypt/decrypt RTP packets from disk Oct 10, 2020
@seamanm
Copy link
Author

seamanm commented Oct 10, 2020

thank you so much,I learn srtp decrypt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants