pylibsrtp
What is pylibsrtp?
pylibsrtp is a Python wrapper around libsrtp, making it possible to encrypt and decrypt Secure Real-time Transport Protocol (SRTP) packets from Python code.
SRTP is a profile of the Real-time Transport Protocol (RTP) which provides confidentiality, message authentication, and replay protection. It is defined by RFC 3711.
You can install pylibsrtp with pip:
$ pip install pylibsrtp
To learn more about pylibsrtp please read the documentation.
Example
#!/usr/bin/env python
from pylibsrtp import Policy, Session
key = (b'\x00' * 30)
rtp = b'\x80\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' + (b'\xd4' * 160)
# protect RTP
tx_policy = Policy(key=key, ssrc_type=Policy.SSRC_ANY_OUTBOUND)
tx_session = Session(policy=tx_policy)
srtp = tx_session.protect(rtp)
# unprotect RTP
rx_policy = Policy(key=key, ssrc_type=Policy.SSRC_ANY_INBOUND)
rx_session = Session(policy=rx_policy)
rtp2 = rx_session.unprotect(srtp)
# check roundtrip worked!
assert rtp2 == rtp
Building pylibsrtp
If you wish to build pylibsrtp yourself, you will need libsrtp version 2.0 or better.
Linux
On Debian/Ubuntu run:
$ apt install libsrtp2-dev
On Fedora/CentOS run:
$ dnf install libsrtp-devel
macOS
On macOS run:
$ brew install srtp
You will need to set some environment variables to link against libsrtp:
export CFLAGS=-I$(brew --prefix openssl)/include -I$(brew --prefix srtp)/include
export LDFLAGS=-L$(brew --prefix openssl)/lib -L$(brew --prefix srtp)/lib
License
pylibsrtp is released under the BSD license.
Metadata
Release files for pylibsrtp 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pylibsrtp-1.1.0.tar.gz | 19.9 kB | With provenance | Details for pylibsrtp-1.1.0.tar.gz |
Built distributions (wheels)
Total release size: 10.9 MB
Release files / pylibsrtp-1.1.0.tar.gz
| Download URL | pylibsrtp-1.1.0.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e98d65f1bc3f1ac328bc78b19d2a38f6f01b922d2f0b8b68fc6371a6b79e07fe
|
|
BLAKE2b-256 checksum How to use checksums |
5410ab75675dc4ef02513c547eade0232472649791cdb02e54ecac14372553e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / pylibsrtp-1.1.0-cp311-abi3-win_arm64.whl
| Download URL | pylibsrtp-1.1.0-cp311-abi3-win_arm64.whl |
|---|---|
| Size | 576.3 kB |
| Tags | CPython 3.11 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
4e4649e4da47ea84ab5c16da73b62f79eafb7e03d2c66ff29c0a978d64096047
|
|
BLAKE2b-256 checksum How to use checksums |
00538f8ec186483cbfffc11d54307d8aa5aacdd07e1ae26ab0b400027d9dec39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / pylibsrtp-1.1.0-cp311-abi3-win_amd64.whl
| Download URL | pylibsrtp-1.1.0-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 738.6 kB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0090ad6c0e8452abd1573a6ec017770d815c16f44de682212886e43f099119db
|
|
BLAKE2b-256 checksum How to use checksums |
b37654faba0ff2553888bfaf43cf113fa284e74fe8072192105df3bf3e1d5bac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / pylibsrtp-1.1.0-cp311-abi3-win32.whl
| Download URL | pylibsrtp-1.1.0-cp311-abi3-win32.whl |
|---|---|
| Size | 516.2 kB |
| Tags | CPython 3.11 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
e8e64c58b2d9f53505f296c257e75ba8bb0e8d817bb5618360bcadf3a84aefec
|
|
BLAKE2b-256 checksum How to use checksums |
b8fcf7c0b9a516d3ada63e2954e1a3a5afc084fa36068366b7d736f5759f3247
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / pylibsrtp-1.1.0-cp311-abi3-musllinux_1_2_x86_64.whl
| Download URL | pylibsrtp-1.1.0-cp311-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1594c592cf33c73867bcc8e23b66945ba2f627c5ba4ce0b33e7966918221deba
|
|
BLAKE2b-256 checksum How to use checksums |
8705052169f3422ffaa0c855806533b6cabc745cf026c380a0fbde18fcaaef88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / pylibsrtp-1.1.0-cp311-abi3-musllinux_1_2_i686.whl
| Download URL | pylibsrtp-1.1.0-cp311-abi3-musllinux_1_2_i686.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
189606da772ffa9c17ccc201fbe5fb37b1751eb8b93c17d094cd08c1942536f3
|
|
BLAKE2b-256 checksum How to use checksums |
f7ec9f4126489dd1ae2ebe8bffc5286f794cceddef2e5267bd7d9f6289e5a363
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / pylibsrtp-1.1.0-cp311-abi3-musllinux_1_2_aarch64.whl
| Download URL | pylibsrtp-1.1.0-cp311-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.11 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
703a3668e5526bd40ca7ae78d7a8e2e874a7c35c0a507d2e84f369d44b58ca5d
|
|
BLAKE2b-256 checksum How to use checksums |
2b3d5cc2d6c53a47f09b97f5999227d8d17ec36d0f7ab9c412fedd7a1eefadbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / pylibsrtp-1.1.0-cp311-abi3-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pylibsrtp-1.1.0-cp311-abi3-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 Linux glibc 2.26+ x86-64 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
646d5433c2c6538837d203f6d3934549113814f6cfe54b57c4a1d4e030b2c2a0
|
|
BLAKE2b-256 checksum How to use checksums |
33bc61ea85fa949726b21b0019f728e66f72e5606ccfdb66b5068466cbdf2de0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / pylibsrtp-1.1.0-cp311-abi3-manylinux_2_26_i686.manylinux_2_28_i686.whl
| Download URL | pylibsrtp-1.1.0-cp311-abi3-manylinux_2_26_i686.manylinux_2_28_i686.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.11 Linux glibc 2.26+ x86-32 Linux glibc 2.28+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
8cd1dae91bcaf184ce32d739711f9e53573a642b8108e8623add06a122794d5f
|
|
BLAKE2b-256 checksum How to use checksums |
398fa6ff02b7630bd221162b2e024aa0489cf1e4097953d1a6604feb784169e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / pylibsrtp-1.1.0-cp311-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | pylibsrtp-1.1.0-cp311-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.11 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
5fc8b2ae5b5c3de52b2d96c295c27eac5e0c071be121da5622ee58c3434d925c
|
|
BLAKE2b-256 checksum How to use checksums |
0656cc4c93fa282e9d6ed21ef41990ec78d13581a82dfb37852fc0fc19ac3b5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / pylibsrtp-1.1.0-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | pylibsrtp-1.1.0-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 808.4 kB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
dfbf595c84d200f84d27ced08550bddb8df41ebed839c36dd30c47e1353f1383
|
|
BLAKE2b-256 checksum How to use checksums |
7d28e0c1d7baa75cec2f6ccb0c16b29daa96ecaf819120ff55907e404091f210
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / pylibsrtp-1.1.0-cp311-abi3-macosx_10_9_x86_64.whl
| Download URL | pylibsrtp-1.1.0-cp311-abi3-macosx_10_9_x86_64.whl |
|---|---|
| Size | 978.6 kB |
| Tags | CPython 3.11 abi3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
a9bec43d7d899836fd8f8b4635bb1304f6f7fa87b6ccc39f83903a72d2ec8a86
|
|
BLAKE2b-256 checksum How to use checksums |
e6c5e6a869a851ff4cb0e555d7ec7046045173e1d9a89cf10f042694b9193b84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for pylibsrtp 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 12 files in this release have been uploaded with provenance metadata.
Attestation for pylibsrtp-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.