# doesn't match hash calculated - vod+securetoken(v2)+clienip - missing \_definst\_

**URL:** <https://community.wowza.com/t/doesnt-match-hash-calculated-vod-securetoken-v2-clienip-missing-definst/46249>\
**Category:** Wowza Streaming Engine\
**Created:** [November 19, 2015, 1:51pm UTC](https://community.wowza.com/t/doesnt-match-hash-calculated-vod-securetoken-v2-clienip-missing-definst/46249 "2015-11-19T13:51:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafay\_A](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@Rafay\_A](https://community.wowza.com/u/Rafay_A)\
**Post date:** [November 19, 2015, 1:51pm UTC](https://community.wowza.com/t/doesnt-match-hash-calculated-vod-securetoken-v2-clienip-missing-definst/46249/1 "2015-11-19T13:51:20Z")

</div>

— hi i am trying to secure a vod mp4 file using

securetoken v2 plus client ip

Randomly the video is stopping in different spots! … some times 5 min, sometimes 14 min

upon more investigation… i found that wowza side string hash calculation is missing _definst_ in the string.

in the hash string… causing wowza to calculate wrong hash.

server side : vodc/_definst_/mp4:remotehost/vod/movie.mp4

wowza side: string hashed string hashed: vodc/mp4:remotehost/vod/movie.mp4

not sure how to fix it!

logs below

2015-11-19

13:34:47 (EST)

comment

server (200)

HTTPStreamerAdapterCupertinoStreamer.onMediaFile[vodc/_definst_/mp4:remotehost/vod/movie.mp4/media\_w198079091\_tkdG9rZW5zdGFydHRpbWU9MTQ0Nzk1Njc1MCZ0b2tlbmVuZHRpbWU9MTQ0Nzk3ODMyMCZ0b2tlbmhhc2g9dG1nTEhZZ3V5T0VrNFRXcEV1UTJ4QWQwZGgzOVdlNnI4c2ozbG10c25lQT0=\_114.ts]: Session not accepted.

x-duration: 1301.174

2015-11-19

13:34:47 (EST)

comment

server (200)

[vodc/_definst_]SecureTokenDef:Hash tmgLHYguyOEk4TWpEuQ2xAd0dh39We6r8sj3lmtsneA=, doesn’t match hash calculated, HDAXHUNXQuuxkwQlx4juGIOCjdfoOY6\_3aHufE6SzEw=

x-duration: 1301.174

2015-11-19

13:34:47 (EST)

comment

server (200)

[vodc/_definst_]ModuleCoreSecurity:token end time stamp: 1447978320

x-duration: 1301.173

2015-11-19

13:34:47 (EST)

comment

server (200)

[vodc/_definst_]ModuleCoreSecurity:token start time stamp: 1447956750

x-duration: 1301.173

2015-11-19

13:34:47 (EST)

comment

server (200)

[vodc/_definst_]ModuleCoreSecurity:string hashed: vodc/mp4:remotehost/vod/movie.mp4?xx.xx.xx.xx&966a0ef2a7c9b272&tokenendtime=1447978320&tokenstarttime=1447956750

x-duration: 1301.173

2015-11-19

13:34:47 (EST)

comment

server (200)

[vodc/_definst_]ModuleCoreSecurity:hashCalculated: HDAXHUNXQuuxkwQlx4juGIOCjdfoOY6\_3aHufE6SzEw=

x-duration: 1301.173

2015-11-19

13:34:47 (EST)

comment

server (200)

[vodc/_definst_]ModuleCoreSecurity:client IP: xx.xx.xx.xx

x-duration: 1301.173

2015-11-19

13:34:47 (EST)

comment

server (200)

[vodc/_definst_]ModuleCoreSecurity:creating httpToken for SessonId:198079091 uri:/vodc/_definst_/mp4:remotehost/vod/movie.mp4/media\_w198079091\_tkdG9rZW5zdGFydHRpbWU9MTQ0Nzk1Njc1MCZ0b2tlbmVuZHRpbWU9MTQ0Nzk3ODMyMCZ0b2tlbmhhc2g9dG1nTEhZZ3V5T0VrNFRXcEV1UTJ4QWQwZGgzOVdlNnI4c2ozbG10c25lQT0=\_114.ts

x-duration: 1301.173

---

<div class="post-metadata">

**Author:** ![Rafay\_A](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@Rafay\_A](https://community.wowza.com/u/Rafay_A)\
**Post date:** [November 24, 2015, 12:30pm UTC](https://community.wowza.com/t/doesnt-match-hash-calculated-vod-securetoken-v2-clienip-missing-definst/46249/2 "2015-11-24T12:30:00Z")

</div>

solved -

after extensive back and forth with wowza engineers via ticket submitted with conf/logs!

looks like a 3rd party app wmspanel security custom module was causing this conflict with wowza 4.3.0.01 secure token

you can close this thread!

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [November 26, 2015, 8:44am UTC](https://community.wowza.com/t/doesnt-match-hash-calculated-vod-securetoken-v2-clienip-missing-definst/46249/3 "2015-11-26T08:44:59Z")

</div>

Thanks for the update and glad you sorted this out.

Salvadore
