osklil / hls-fetch

Download and decrypt videos served by the HTTP Live Streaming (HLS) protocol.
195 stars 48 forks source link

Bad decrypt due to key being fetched as decoded data #8

Open alimony opened 9 years ago

alimony commented 9 years ago

I've had trouble downloading a stream due to a bad decrypt error from OpenSSL. It turns out the wrong decrypt key was assembled when doing the faux hexdump of the fetched key file. This in turn was because the crypt key file was fetched as decoded utf8 data, although it's just a series of bytes. I fixed this by making this modification: https://github.com/alimony/hls-fetch/commit/6714efb15fe09efcfc9acb115eb41e7bd3c7abac

Would you be interested in a pull request with this fix?