I would like to scramble a string containing a users UID, so this cannot be tracked using the database. I would also like that this should be a consistant pattern, so no random shuffling of letters - If the user changes the device, the result coming out from this function should still be the same.
Yet, i wouldn't want to add CryptoSwift just for this
This is only to make readability harder, but also to make sure that the same user posts to the same place in the database basically. So there will be no security issues connected to this. It will only be used to anonymize some data.
A UID could look like this "0bb0fca0-1e89-429f-901a-1413894d9f59"
How can i achieve this in the best way?
I'm thinking something like adding prime numbers or having some kind of "black box" for just sending a string to the function and getting another string back. Size of the string or how it should be done doesn't really matter