Here's as far as I've gotten in decryption. The decryption key (https://media-api.m.lv.twimg.com/pro...ys/id/20307890) is always the same, in hex: 45F859D2B58D3507DEBCF807A6F79D3A. i.e. they are not rotating keys (which is a feature). So, only the initialization vector (IV) is changing, and that's listed in the m3u8.
So, in my example m3u8 above, the IV should be CD08B15FC528B365A6365A74DDD6CC34 for fragment 02/30/03.ts.
It should work if you decrypt with those values, like so:
Code:
$ openssl aes-128-cbc -d -K 45f859d2b58d3507debcf807a6f79d3a -iv CD08B15FC528B365A6365A74DDD6CC34 -nosalt -in 03.ts -out 03-dec.ts
But I just get:
Code:
bad decrypt
35490:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/evp/evp_enc.c:337: