HLS-m3u8-Custom-Encryption icon indicating copy to clipboard operation
HLS-m3u8-Custom-Encryption copied to clipboard

服务器把key的urlbase64加密了 我本地base64解密 代码看着都正确为什么不能播放

Open rfcleon opened this issue 5 years ago • 6 comments

rfcleon avatar Dec 02 '20 03:12 rfcleon

你应该把解密的东西给系统,不应该是你自己解密

LastNeo avatar Dec 02 '20 03:12 LastNeo

还是一知半解 大佬有时间的话帮忙看看 代码打包给你 是在你之前的代码的上改的 先谢谢了!

------------------ 原始邮件 ------------------ 发件人: "LastNeo/HLS-m3u8-Custom-Encryption" <[email protected]>; 发送时间: 2020年12月2日(星期三) 中午11:12 收件人: "LastNeo/HLS-m3u8-Custom-Encryption"<[email protected]>; 抄送: "472545441"<[email protected]>;"Author"<[email protected]>; 主题: Re: [LastNeo/HLS-m3u8-Custom-Encryption] 服务器把key的urlbase64加密了 我本地base64解密 代码看着都正确为什么不能播放 (#2)

你应该把解密的东西给系统,不应该是你自己解密

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

rfcleon avatar Dec 02 '20 03:12 rfcleon

大佬 求指点啊!

rfcleon avatar Dec 02 '20 07:12 rfcleon

系统是会自动根据你给系统的key 做对应的解密的,是不需要额外的修改的

LastNeo avatar Dec 02 '20 07:12 LastNeo

系统是会自动根据你给系统的key 做对应的解密的,是不需要额外的修改的

我们属于自定义加密的需求 本来正常的数据是 #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-KEY:METHOD=AES-128,URI="http://jfky8s.natappfree.cc/demo/user/key/enc.key",IV=0xb45275c9162a09653ec0dde0611a7a39 #EXTINF:10.000000, output0.ts #EXTINF:10.000000, output1.ts #EXTINF:10.000000, output2.ts #EXTINF:10.000000, output3.ts #EXTINF:10.000000, output4.ts #EXTINF:10.000000, output5.ts #EXTINF:10.000000, output6.ts #EXTINF:10.000000, output7.ts #EXTINF:10.000000, output8.ts #EXTINF:10.000000, output9.ts #EXTINF:10.000000, output10.ts #EXTINF:10.000000, output11.ts #EXTINF:10.000000, output12.ts #EXTINF:10.000000, output13.ts #EXTINF:10.000000, output14.ts #EXTINF:10.000000, output15.ts #EXTINF:10.000000, output16.ts #EXTINF:10.000000, output17.ts #EXTINF:10.000000, output18.ts #EXTINF:10.000000, output19.ts #EXTINF:10.000000, output20.ts #EXTINF:10.000000, output21.ts #EXTINF:10.000000, output22.ts #EXTINF:10.000000, output23.ts #EXTINF:8.800000, output24.ts #EXT-X-ENDLIST这样的 但服务器把URI="http://jfky8s.natappfree.cc/demo/user/key/enc.key" 这个替换成URI="aHR0cDovL2pma3k4cy5uYXRhcHBmcmVlLmNjL2RlbW8vdXNlci9rZXkvZW5jLmtleQ==" 做了个base64编码 请问这样的我要咋弄?谢谢

rfcleon avatar Dec 02 '20 08:12 rfcleon

让服务器改下 把加密放到URI="http://jfky8s.natappfree.cc/demo/user/key/enc.key" 这个文件里面做 链接是正常的,只不过里面的内容是加密的

LastNeo avatar Sep 24 '21 02:09 LastNeo