Can't get playback security token to work

Hi there … I’ve been trying to get playback token to work but haven’t been successful following steps in the documentation
I’m trying to get it to work manually first

My playback URL without token is as following

http://[server_IP]:1935/token/camtoken1.stream/playlist.m3u8

Based on documentation:
content path: token/definst/camtoken1.stream
Sharedsecret I’m using: 12345678
Prefix: wowzatoken

String to generate de HASH should be following
token/definst/camtoken1.stream?12345678&wowzatokendendtime=0&wowzatokenCustomParameter=abcdef

SHA256 of this string is ```
3f39d01d5178456f30bf235c6ed4e811b325b6b3224249c9aefc42a035157fc7

BASE64 of the hash is M2YzOWQwMWQ1MTc4NDU2ZjMwYmYyMzVjNmVkNGU4MTFiMzI1YjZiMzIyNDI0OWM5YWVmYzQyYTAzNTE1N2ZjNw==

Playback url 
http://[server_IP]:1935/token/_definst_/camtoken1.stream/playlist.m3u8?wowzatokendendtime=0&wowzatokenCustomerParameter=abcdef&wowzatokenhash=M2YzOWQwMWQ1MTc4NDU2ZjMwYmYyMzVjNmVkNGU4MTFiMzI1YjZiMzIyNDI0OWM5YWVmYzQyYTAzNTE1N2ZjNw==

I get a forbidden access (403) and debug shows 

[token/_definst_]SecureTokenDef:Hash M2YzOWQwMWQ1MTc4NDU2ZjMwYmYyMzVjNmVkNGU4MTFiMzI1YjZiMzIyNDI0OWM5YWVmYzQyYTAzNTE1N2ZjNw==, doesn't match hash calculated, hZ-eMMAXaer9tjWxYQj0T1WjIMSz_MecyQz6aEW8uu8=

Something is obviously wrong. So, what step is the one I'm doing wrong. Wowza's  hash is way shorter than the one I calculated.


Thanks

Hello Gustavo,

Sorry you are having issues, I assume you are sharing this as an example, but you will create all new ones because sharing this has compromised your token security obviously. These posts get thousands of views. As far as the issue you are having that issue, due to privacy we only troubleshoot hash issues through a support ticket.

I’m sure you are aware that SHA-256 has to be 256 characters. So if Wowza is cutting it shorter, please send a ticket and we will troubleshoot for you.

https://www.wowza.com/docs/how-to-protect-streaming-using-securetoken-in-wowza-streaming-engine