<p>You cant generate the key. You have to download the key. The URL is in the manifest. In this case it looks like you need to substitute some values first. </p>

<p>To decrypt, since this files uses AES-128 and not SAMPLE-AES, you can just decrypt each file using OpenSSL </p>

CC BY-SA 4.0
2019-07-21T16:20:30.603Z
2019-07-21T16:20:30.603Z
SlimSCSI
<p>I am downloading an HLS video which is AES-128 encrypted. The issue is that the downloaded video is also encrypted and hence, not viewable. </p>

<p>The website is serving 2 M3U8 manifests:</p>

<ol>
<li><p>The first manifest (<code>playlist.m3u8</code>) refers to a <code>chunklist_alphanumeric.m3u8</code>. A sample is <a href="https://pastebin.com/wtjKZJ0N" rel="nofollow noreferrer">here</a>.</p></li>
<li><p>The second manifest (<code>chunklist_alphanumeric.m3u8</code>) seems like <a href="https://pastebin.com/fGNEuvJK" rel="nofollow noreferrer">this</a>.</p></li>
</ol>

<p>In this context, I have the following two questions</p>

<ol>
<li><p>How can I generate the decryption key?</p></li>
<li><p>How can I decrypt the video using the decryption key?</p></li>
</ol>

<p>I'm using Windows-10 (64-bit).</p>

<ffmpeg><encoding><post-production><windows><hls>
How to generate decryption key from m3u8 manifest? (OR) How to decrypt an excrypted MP4 using URI and IV?
SOuser
# How to generate decryption key from m3u8 manifest? (OR) How to decrypt an excrypted MP4 using URI and IV?

(Asked by: username_0 on 2019-07-21)

I am downloading an HLS video which is AES-128 encrypted. The issue is that the downloaded video is also encrypted and hence, not viewable.

The website is serving 2 M3U8 manifests:

1. The first manifest (`playlist.m3u8`) refers to a `chunklist_alphanumeric.m3u8`. A sample is [here](https://pastebin.com/wtjKZJ0N).
2. The second manifest (`chunklist_alphanumeric.m3u8`) seems like [this](https://pastebin.com/fGNEuvJK).

In this context, I have the following two questions

1. How can I generate the decryption key?
2. How can I decrypt the video using the decryption key?

I'm using Windows-10 (64-bit).

**Tags:** ffmpeg, encoding, post-production, windows, hls


---

## 1 answers

### Answer by username_1 on 2019-07-21. Score: 0

You cant generate the key. You have to download the key. The URL is in the manifest. In this case it looks like you need to substitute some values first.

To decrypt, since this files uses AES-128 and not SAMPLE-AES, you can just decrypt each file using OpenSSL


---

