Amazon Comprehend now helps you mask personally identifiable information from text documents
You can now identify and mask personally identifiable information (PII) from text documents using Amazon Comprehend. Amazon Comprehend uses machine learning to detect PII information that can be used to identify any individual such as social security numbers, credit card numbers, and email addresses. You can use Amazon Comprehend’s PII API synchronously and asynchronously to detect PII and mask it from text documents.
Source:: Amazon AWS