# Wowza Secure Streaming for Live and VOD uses Rotation of 5-Keys AES-128

**URL:** <https://community.wowza.com/t/wowza-secure-streaming-for-live-and-vod-uses-rotation-of-5-keys-aes-128/54757>\
**Category:** Wowza Streaming Engine\
**Tags:** wowza-streaming-server-java-api\
**Created:** [March 4, 2020, 3:10pm UTC](https://community.wowza.com/t/wowza-secure-streaming-for-live-and-vod-uses-rotation-of-5-keys-aes-128/54757 "2020-03-04T15:10:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diorama\_Yuanito](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/diorama_yuanito/32/1434_2.png) [@Diorama\_Yuanito](https://community.wowza.com/u/Diorama_Yuanito)\
**Post date:** [March 4, 2020, 3:10pm UTC](https://community.wowza.com/t/wowza-secure-streaming-for-live-and-vod-uses-rotation-of-5-keys-aes-128/54757/1 "2020-03-04T15:10:03Z")

</div>

i have a task to create this for my company :

Create a module in jar library,  
Wowza Secure Streaming for Live and VOD uses Rotation of 5-Keys AES-128,  
for Live Streaming then rotate key every 12 minutes,  
for VOD Streaming then rotate key every 10 chunks,This module works for HLS-Engine only (Wowza-Cupertino-Engine)

and the result is here

[https://drive.google.com/file/d/1IA14ZwjdmED14nLTtZ97fPK-\_i1iKOW2/view?usp=sharing](https://drive.google.com/file/d/1IA14ZwjdmED14nLTtZ97fPK-_i1iKOW2/view?usp=sharing)

for VOD, it works fine,  
but for Live, key url of encInfo never shown.

Would you mind reviewing my code ?

[https://drive.google.com/open?id=1BEkIwEGzAaPW-M8XoQyLXXyIauTwgSL7](https://drive.google.com/open?id=1BEkIwEGzAaPW-M8XoQyLXXyIauTwgSL7)

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [March 4, 2020, 6:09pm UTC](https://community.wowza.com/t/wowza-secure-streaming-for-live-and-vod-uses-rotation-of-5-keys-aes-128/54757/2 "2020-03-04T18:09:30Z")

</div>

Hello @Diorama Yuanito, Wowza will be happy to review your code and logs through a support ticket which you can easily [submit here](https://www.wowza.com/support/open-ticket).

Thank you for all you posted, but tech support does not review code in the forums since there is a certain procedure to follow and they need all your files and logs zipped up and sumbitted to run tests.

---

<div class="post-metadata">

**Author:** ![Diorama\_Yuanito](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/diorama_yuanito/32/1434_2.png) [@Diorama\_Yuanito](https://community.wowza.com/u/Diorama_Yuanito)\
**Post date:** [March 6, 2020, 3:08am UTC](https://community.wowza.com/t/wowza-secure-streaming-for-live-and-vod-uses-rotation-of-5-keys-aes-128/54757/3 "2020-03-06T03:08:13Z")

</div>

Ok miss Rose, thanks alot for your Information

---

<div class="post-metadata">

**Author:** ![Diorama\_Yuanito](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/diorama_yuanito/32/1434_2.png) [@Diorama\_Yuanito](https://community.wowza.com/u/Diorama_Yuanito)\
**Post date:** [March 11, 2020, 1:58pm UTC](https://community.wowza.com/t/wowza-secure-streaming-for-live-and-vod-uses-rotation-of-5-keys-aes-128/54757/4 "2020-03-11T13:58:27Z")

</div>

Thanks alot miss Rose, finally we can make our module running well to gain our objectives.

Wowza team give me a clue : We should run this module in live Origin too

wss-ext-x-key.png

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [March 11, 2020, 2:00pm UTC](https://community.wowza.com/t/wowza-secure-streaming-for-live-and-vod-uses-rotation-of-5-keys-aes-128/54757/5 "2020-03-11T14:00:47Z")

</div>

That’s great to hear @Diorama Yuanito and so glad you submitted a ticket so we could properly assist you. Thanks for sharing the that the solution was to run it in origin mode.
