1. What is a Widevine key dumper?
A Widevine key dumper is any tool that performs a Widevine license request (via a CDM device file, typically at security level L3) and extracts the returned content keys so they can be reused offline. The output is a list of KID:KEY pairs that can be fed into mp4decrypt or any CENC-capable remuxer to produce playable output.
People search for "Widevine key dumper" when they want to:
- Decrypt a single VOD asset they are authorised to process.
- Inspect a DRM pipeline for integration testing.
- Restream licensed content through a local panel.
- Debug a failing production decrypt and confirm the key material is valid.
2. How Widevine key dumping actually works
A typical Widevine key dumping pipeline looks like this:
- Fetch the MPD and parse the
<ContentProtection>elements. - Extract the Widevine PSSH box (scheme UUID
edef8ba9-79d6-4ace-a3c8-27dcd51d21ed). - Load a Widevine L3 CDM device file (
.wvd) — typically wrapping client ID and private key. - Build a license challenge with pywidevine:
pywidevine.Cdm.get_license_challenge(session_id, pssh). - POST the challenge to the provider's license server with whatever authentication headers the provider requires.
- Parse the license response:
cdm.parse_license(session_id, response). - Iterate the CDM's key store to extract
KID:KEYpairs. - Output the KID:KEY pairs to stdout, a file or straight into
mp4decrypt.
This pipeline works. What makes it painful is that every step depends on things that change: license server auth tokens, MPD structure variations, rotated device files, and — most importantly — keys themselves.
3. PSSH extraction and KID parsing
The PSSH box carries the DRM-specific init data. Extracting KIDs from it is deceptively non-trivial because providers embed PSSH in several schemes: inline cenc:pssh, mspr:pro for PlayReady, or a combined cenc PSSH that lists multiple KIDs. A solid extractor:
import base64, xml.etree.ElementTree as ET
from pywidevine.pssh import PSSH
mpd = requests.get(mpd_url).text
root = ET.fromstring(mpd)
ns = {'cenc': 'urn:mpeg:cenc:2013'}
pssh_b64 = root.find('.//cenc:pssh', ns).text
pssh = PSSH(base64.b64decode(pssh_b64))
print("KIDs:", [k.hex() for k in pssh.key_ids])
Streamora does all of this internally and surfaces the extracted KIDs in the admin UI for diagnostics.
4. Key rotation — the reason dumped keys go stale
A dumped KID:KEY pair is only valid for its encryption window. Once the provider rolls the key — often at an event boundary or every 1–24 hours — every subsequent segment decrypts to noise. Static key dumpers have no way to recover.
Key rotation in the wild takes several forms:
- Scheduled rotation — new KID every N hours, often at UTC midnight.
- Event-boundary rotation — live sports / news channels rotate at commercial breaks.
- Per-period rotation — multi-period MPDs (ads, programme segments) carry different PSSH and keys.
- Silent rotation — some providers rotate on redeployment with no visible schedule; only detectable by observing decrypt failures.
Handling all of this requires a continuous license loop, a KID-keyed cache, decrypt-failure detection and automatic license re-fetch. Streamora implements every one of these as part of the live DRM pipeline.
5. The managed DRM panel approach — Streamora
Instead of running a cron that re-executes a Python key dumper every hour and praying, Streamora treats key management as an in-process subsystem:
- Auto key acquisition — license request embedded in the live ingest pipeline, no standalone dumper.
- Per-channel key cache — keys stored by KID in memory, auto-invalidated on rotation.
- Decrypt-failure detection — CENC engine flags sample decrypt failures and triggers an immediate license re-fetch.
- Manual key override — custom providers can paste KID:KEY pairs directly into the stream profile.
- Encrypted provider scripts — license-request logic lives inside SENC-encrypted Python scripts bound to your license + hardware.
- Hardware-bound licensing — keys and scripts only decrypt on the authorised machine.
6. Dumper script vs DRM panel — comparison
| Capability | Standalone Dumper | Streamora Panel |
|---|---|---|
| One-shot KID:KEY dump | ✓ | ✓ |
| Continuous live license loop | ✗ | ✓ |
| Key rotation detection | ✗ | ✓ |
| Per-channel key cache | ✗ | ✓ |
| Auto license re-fetch on decrypt fail | ✗ | ✓ |
| Multi-period MPD handling | ✗ | ✓ |
| PlayReady + FairPlay + ClearKey | ✗ | ✓ |
| Encrypted provider scripts | ✗ | ✓ SENC |
| Hardware-bound license | ✗ | ✓ |
| Admin dashboard / monitoring | ✗ | ✓ |
7. A note on safety & shady key-dumping websites
Most websites that offer to dump Widevine keys from a URL you paste in are either harvesting the URLs and session tokens you submit, or fronting for malware distribution. A self-hosted pipeline — or a managed panel like Streamora — keeps credentials, URLs and keys inside infrastructure you control.
The rule of thumb: if a website asks you to paste a license URL, an auth header or a PSSH without requiring you to deploy anything server-side, it is either collecting intelligence or distributing compromised code. Move your workflow to a self-hosted panel and audit the traffic yourself.
8. Widevine key dumper FAQ
Can I dump keys from a live DRM stream and leave it running?
Only if you continuously re-run the license flow and detect rotation. A managed DRM panel does this for you automatically — a standalone script will go silent the first time the provider rotates keys.
Does Streamora expose dumped keys through an API?
No. Keys remain in-process and are never surfaced via HTTP endpoints. The admin UI shows KID fingerprints and status (valid / rotated / failed) but never the raw key material.
Can I manually enter a KID:KEY I already have?
Yes. In a stream profile, select "manual keys" and paste one or more KID:KEY pairs. Streamora's CENC engine will use them exactly as if they had been auto-acquired.
What about PlayReady keys?
Streamora supports PlayReady license flows as well. The same KID-keyed cache and rotation detection logic applies. See the Widevine L3 decryptor and CENC decryption guides for the DRM pipeline end-to-end.
Is there a free Widevine key dumper that just works?
Open-source options exist (pywidevine + a device file), but "just works" does a lot of heavy lifting in that sentence. For hobby VOD use, the OSS stack is fine. For anything live or multi-channel, Streamora's free trial license is a better starting point.
Stop chasing rotated keys with cron jobs
Install Streamora and get managed Widevine key acquisition, rotation detection and live HLS output in a single binary.
Download Streamora — Latest Release See MPD Downloader Guide
Signed binary • install.sh • changelog • free trial