I’m trying to duplicate the hashes generated by tyk outside of Tyk.
“GitHub - TykTechnologies/murmur3: Native MurmurHash3 Go implementation”
“GitHub - spaolacci/murmur3: Native MurmurHash3 Go implementation” and virtually any other murmur3 implementation seem to disagree:
This online one here: http://murmurhash.shorelabs.com/ also matches all my other libs I’m using in multiple langauges (go, python) except the Tyk murmur3 gets a different answer.
Am I missing something?
Initially, we used GitHub - spaolacci/murmur3: Native MurmurHash3 Go implementation but they made some changes in murmur32 algo, which was a breaking change for us, so we had to do a fork with the previous version.
In 2.7 Tyk Gateway v2.7 we added option to specify hashing algorithm (see release notes), and you can try using
murmur64, which is based on latest
Hope it helps!
Got it. Thanks.
Given that - it would be nice if, along with the RawKey, the Hash value was returned as well given I can’t easily generate it in this case.
Actually it is already works like this. When you create key via API, it returns
Ah - perhaps in other places, but not on keys provisioned for developers:
Cache-Control: no-store, no-cache, private
Content-Security-Policy: default-src * data: blob: 'unsafe-inline' 'unsafe-eval'; script-src * data: blob: 'unsafe-inline' 'unsafe-eval'; connect-src * 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src *; style-src * 'unsafe-inline';
Strict-Transport-Security: max-age=63072000; includeSubDomains
Date: Tue, 28 Aug 2018 21:48:03 GMT
Worth noticing that when you generate key for developer, its hash added to developer object, “subscriptions” map.
Right, I was hoping to avoid the extra API call to get the key hash and based on key hash go straight to the endpoint that gets key info.