# VOD encrypt HLS with key files

**URL:** <https://community.wowza.com/t/vod-encrypt-hls-with-key-files/51212>\
**Category:** Wowza Streaming Engine\
**Created:** [April 26, 2018, 3:52pm UTC](https://community.wowza.com/t/vod-encrypt-hls-with-key-files/51212 "2018-04-26T15:52:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piotr\_Czekala](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@Piotr\_Czekala](https://community.wowza.com/u/Piotr_Czekala)\
**Post date:** [April 26, 2018, 3:52pm UTC](https://community.wowza.com/t/vod-encrypt-hls-with-key-files/51212/1 "2018-04-26T15:52:44Z")

</div>

Hello,

I need to encrypt HLS VOD stream using fairplay and SAMPLE-AES encryption. I’ve created key file with cupertinostreaming-aes128 section but when I get chunlist there’s no #EXT-X-KEY:METHOD=SAMPLE-AES,… tag and HLS stream isn’t encrypted - I can play it on any player. Key files are working fine for MSS and Dash (I’m using Wowza Streaming Engine 4.7.2). Am I missing something?

---

<div class="post-metadata">

**Author:** ![Pawel\_Kaczmarek](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@Pawel\_Kaczmarek](https://community.wowza.com/u/Pawel_Kaczmarek)\
**Post date:** [June 13, 2018, 4:24pm UTC](https://community.wowza.com/t/vod-encrypt-hls-with-key-files/51212/2 "2018-06-13T16:24:59Z")

</div>

Hi,

I have exact same problem here: AES-128 works fine, but switching to SAMPLE-AES doesn’t work properly. Have you managed to solve it?
