I´m trying to anonymize an message-thread id to prevent re-identification even with full access to the source database.
- I need consistency when processing, so that multiple instances of say "100" produces the same hash just like a regular hashing algorithm.
- I need to cut the cord at one point and delete the key/seed, so that it´s impossible to produce the hash using "100" in the future.
Thank you for any pointers. Example in Python or Java would be appreciated.
Update - Practical application of the answer:
I generated a 24 character password on https://www.random.org/ to use as a seed/key.
I found a simple implementation on this Gist: https://gist.github.com/ishikawa/88599
So the plan is to delete the key from my code once I´m ready and the data will be fully detached from it´s origin.