使用hls.js使用二进制作为密钥查看加密流

发布于 2025-01-21 11:05:42 字数 251 浏览 1 评论 0原文

我正在尝试使用hls.js查看加密流的安全方法。

我想到的一种方法是将流播放列表在没有ext-x-key标签的情况下将其附加到加载上,然后将结果斑点作为URL作为URL馈送到hls.js 启动器。但是我从其他开发人员开始担心,这种方式将被缓存,并且可以与钥匙一起提取。

有没有办法将hls.js用键为二进制并避免缓存的方法?

I'm trying to find a secure way to view an encrypted stream using hls.js.

One way I thought of was to have the stream playlist without the EXT-X-KEY tag and append it on load and then feeding the resulting blob as a URL to the hls.js initialiser. But I got concerns from other dev that this way the blob is going to be cached and could be extracted along with the key.

Is there a way to securely provide the hls.js with the key as binary and avoid caching?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北方的巷 2025-01-28 11:05:42

如果您没有密钥,则加密使HLS软件包无法阅读。

数字权利管理(DRM)负责安全的密钥交换和许可。

您的浏览器处理内容解密模块内的安全键交换。

因此,您需要的是DRM系统。看起来HLS.JS仅支持Widevine。
这看起来像是一个很好的摘要Widevine DRM: https://wwwww.vdocher。 com/blog/widevine-drm-hollywood-video/

Encryption makes the HLS package unreadable if you don't have the key.

Digital Rights Management (DRM) is responsible for the secure key exchange and the licensing.

Your browser handles the secure key exchange inside the Content Decryption Module.

So what you need is a DRM system. It looks like hls.js only supports Widevine.
This looks like a good summary Widevine DRM: https://www.vdocipher.com/blog/widevine-drm-hollywood-video/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文