{"id":13907938,"url":"https://github.com/emarsden/pssh-box-wasm","last_synced_at":"2025-12-29T23:42:04.112Z","repository":{"id":222469055,"uuid":"757366136","full_name":"emarsden/pssh-box-wasm","owner":"emarsden","description":"Parsing and printing PSSH boxes for DRM systems, in WebAssembly.","archived":false,"fork":false,"pushed_at":"2024-04-13T08:01:41.000Z","size":81,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-13T20:50:40.107Z","etag":null,"topics":["decoding","drm","pssh","webassembly"],"latest_commit_sha":null,"homepage":"https://emarsden.github.io/pssh-box-wasm/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emarsden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-14T10:53:01.000Z","updated_at":"2024-04-16T07:39:33.999Z","dependencies_parsed_at":"2024-03-02T10:30:09.720Z","dependency_job_id":"87a637cb-2f89-487a-bb89-e15ee66451ef","html_url":"https://github.com/emarsden/pssh-box-wasm","commit_stats":null,"previous_names":["emarsden/pssh-box-wasm"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarsden%2Fpssh-box-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarsden%2Fpssh-box-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarsden%2Fpssh-box-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarsden%2Fpssh-box-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emarsden","download_url":"https://codeload.github.com/emarsden/pssh-box-wasm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226361621,"owners_count":17612930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decoding","drm","pssh","webassembly"],"created_at":"2024-08-06T23:02:19.873Z","updated_at":"2025-12-29T23:42:04.054Z","avatar_url":"https://github.com/emarsden.png","language":"JavaScript","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# pssh-box-wasm\n\nA collection of web-based tools for working with PSSH boxes (as used for the initialization of DRM\nsystems) and with Widevine Content Decryption Modules (CDMs). There are tools that allow you to:\n\n- serialize and deserialize (create and decode) PSSH boxes\n- request decryption keys (obtain a license) from a Widevine DRM licensing server\n- convert Widevine CDMs between blob format and “WVD” format\n\nThe tools use code from the Rust crate [pssh-box](https://crates.io/crates/pssh-box) compiled to\nWebAssembly (WASM), and run fully in your web browser (there is no server backend; the tools will work fully\noffline once loaded).\n\n\u003e [!TIP]\n\u003e You can [try out the tools in your browser](https://emarsden.github.io/pssh-box-wasm/). \n\n\nPSSH boxes are used:\n\n- in an MP4 box of type `pssh` in an MP4 fragment (CMAF/MP4/ISOBMFF containers)\n\n- in a `\u003ccenc:pssh\u003e` element in a DASH MPD manifest\n\n- in DRM initialization data passed to the Encrypted Media Extension of a web browser\n\n- in an `EXT-X-SESSION-KEY` field of an m3u8 playlist\n\n\nA PSSH box includes information for a single DRM system. This library supports the PSSH data formats\nfor the following DRM systems:\n\n- Widevine, owned by Google, widely used for DASH streaming\n- PlayReady, owned by Microsoft, widely used for DASH streaming\n- WisePlay, owned by Huawei\n- Irdeto\n- Marlin\n- Nagra\n- The unofficial variant of Apple FairPlay that is used for DASH-like streaming by Netflix\n- Common Encryption\n\nPSSH boxes contain (depending on the DRM system) information on the key_ID for which to obtain a\ncontent key, the encryption scheme used (e.g. cenc, cbc1, cens or cbcs), the URL of the licence\nserver, and checksum data.\n\n\n\nUseful references: \n\n- Information from the W3C on the [cenc initialization data format](https://www.w3.org/TR/eme-initdata-cenc/)\n\n- [Widevine diagnostics tools](https://integration.widevine.com/diagnostics) \n\n- The Shaka packager utility includes a Python script\n  [pssh-box.py](https://github.com/shaka-project/shaka-packager/blob/main/packager/tools/pssh/pssh-box.py)\n  which is able to decode and create Widevine initialization data.\n\n\n\n## License\n\nThis project is licensed under the MIT license. For more information, see the `LICENSE` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femarsden%2Fpssh-box-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femarsden%2Fpssh-box-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femarsden%2Fpssh-box-wasm/lists"}