# Using encryption on an ABR stream

**URL:** <https://community.wowza.com/t/using-encryption-on-an-abr-stream/50807>\
**Category:** Wowza Streaming Engine\
**Created:** [February 22, 2018, 12:38am UTC](https://community.wowza.com/t/using-encryption-on-an-abr-stream/50807 "2018-02-22T00:38:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pat\_Greer](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@Pat\_Greer](https://community.wowza.com/u/Pat_Greer)\
**Post date:** [February 22, 2018, 12:38am UTC](https://community.wowza.com/t/using-encryption-on-an-abr-stream/50807/1 "2018-02-22T00:38:51Z")

</div>

I have a 4 bitrate ABR stream-set working without encryption (external method). Each stream plays fine independently when encrypted, but if I put them together in a SMIL file, I cannot get them to play. I get strange errors that have nothing to do with encryption. If I pull the chunklist via a curl command, I get the proper format, but the video will not play. Is there anything special that needs to be done to make encrypted files play via a SMIL file?

---

<div class="post-metadata">

**Author:** ![Jermaine\_Hemby](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jermaine\_Hemby](https://community.wowza.com/u/Jermaine_Hemby)\
**Post date:** [February 24, 2018, 3:57pm UTC](https://community.wowza.com/t/using-encryption-on-an-abr-stream/50807/2 "2018-02-24T15:57:43Z")

</div>

Hello

Thanks for contacting the Wowza Community

You must have a .key file for each stream that you want to protect. Each of these files may use the same 32-byte key and the same URL to return that key to devices, or you might have a different key and different URL for each stream.

Also, can you setup a key file per folder for this application. You will see how to set this up in this article in the key folder section. Once setup can you restart and te-test?

[https://www.wowza.com/docs/how-to-secure-apple-http-live-streaming-aes-128-external-method](https://www.wowza.com/docs/how-to-secure-apple-http-live-streaming-aes-128-external-method)

regards,  
Jermaine
