I am using a JWT token's hash as part of a cache key, since I want to provide different values when a different token is used.
The hash code is calculated in service written in .NET Framework, and is given as one of the inputs to another service (that has the cache implementation and logic) which is written in .NET Core.
Since the GetHashCode() returns different results in the two services, is there a way to mimic the .NET Framework's hash code in the .NET Core service?
If not, is there a simple way to distinguish between two JWT tokens?
Thanks!