Hi all,
We are trying to implement SecureToken protection in Wowza Streaming Engine.
The way we understood is that we should do something like this:
-
sha256(“vod/sample.mp4?mySharedSecret&myTokenPrefixCustomParameter=abcdef&myTokenPrefixendtime=1467904640&myTokenPrefixstarttime=1467804640”)
-
The result would be: b70c922b74dee5a94bb1f66e72dc5f6672e8924e9b9eebc38d9c068ae8944007
-
Then, we do base64(b70c922b74dee5a94bb1f66e72dc5f6672e8924e9b9eebc38d9c068ae8944007)
-
And we use the result of base64 as value for “myTokenPrefixhash” parameter.
But this is not working and we believe the reason is we did not properly interpret how exactly to generate the hash.
We followed HLS example provided here:
https://www.wowza.com/docs/how-to-protect-streaming-using-securetoken-in-wowza-streaming-engine
Could someone explain, on this example, how is this:
String used for hashing (in required alphabetical order):
vod/sample.mp4?192.168.1.2&mySharedSecret&myTokenPrefixCustomParameter=abcdef&myTokenPrefixendtime=15000 00000&myTokenPrefixstarttime=1395230400
Turned into:
myTokenPrefixhash=TgJft5hsjKyC5Rem_EoUNP7xZvxbqVPhhd0GxIcA2oo=