# How to generate Secure Token For CDN Stream Target

**URL:** <https://community.wowza.com/t/how-to-generate-secure-token-for-cdn-stream-target/49544>\
**Category:** Wowza Streaming Engine\
**Created:** [August 26, 2017, 12:26am UTC](https://community.wowza.com/t/how-to-generate-secure-token-for-cdn-stream-target/49544 "2017-08-26T00:26:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Amit\_Mittal1](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@Amit\_Mittal1](https://community.wowza.com/u/Amit_Mittal1)\
**Post date:** [August 26, 2017, 12:26am UTC](https://community.wowza.com/t/how-to-generate-secure-token-for-cdn-stream-target/49544/1 "2017-08-26T00:26:54Z")

</div>

Hello,

I am using latest version of Wowza Streaming engine with Wowza CDN.

I have been trying to generate Secure token by following your guide at  
[https://www.wowza.com/docs/how-to-protect-a-wowza-cdn-stream-target-with-token-authorization#about](https://www.wowza.com/docs/how-to-protect-a-wowza-cdn-stream-target-with-token-authorization#about)

I am not really into coding so i am not able to understand how to implement the php code in sample query with the stream.

I want to create a php page having wowza player with secure token, i have followed everything on that page except i am not able to generate a unique token with the php sample, Please provide me with a complete code/process to generate token and implement it with wowza player. Any random stream name/shared secret would be fine.

Thank you.

---

_[View the full topic](https://community.wowza.com/t/how-to-generate-secure-token-for-cdn-stream-target/49544)._
