I want to create an anonymized version of a table where one of the id fields (long) needs to be anonymized.
The table is queried by a huge number of different business stake holders so I would prefer to not change the field type in order to minimize SQL changes for consumers.
I guess it requires some sort of HMAC like hash algorithm with a secret that makes the mapping fully one-way after the secret is deleted/forgotten.
This sounds like something that one should not roll yourself.
It has to be secure and have very few collisions.
Is there something recommended by GDPR specialists?
Or is this not really possible? (We will need to change the field to a larger "string" field)