I am experiencing a pretty annoying issue, using a crc16 hash to manage some of my informations.
In my application, I pass some information into an url parameter, a huge encoded context. That context allow the users to recover their old searches. In that context, i have some elements I hash to be sure it won't take too much characters.
It seems that some elements return the same hash (crc16 algorithm).
I take the has and transform it to a string : crc.ToString("X4"); For example, two different elements gives me : 5A8E.
I tried to use a crc32, but if I do that, the old context won't be recognize.
Do you have any idea how i can find a solution to that ? Thanks a lot