Tool for hiding real ids with random ids in a robust and consistent way