The [`anonymizer` package](https://github.com/paulhendricks/anonymizer) seems to be a good resource for this. I have never used it, though, so you should do some more research if you want to use it.