Remove personally identifiable information from text. Inspired by https://github.com/solvvy/redact-pii.
Requirements:
- Java 1.7+
final String redactedText = PiiRedactor.getInstance().redact("Hi David Johnson, Please give me a call at 555-555-5555");
// Hi NAME, Please give me a call at PHONE_NUMBER
Add as a dependency with maven:
<dependency>
<groupId>com.nerdvision</groupId>
<artifactId>redact-pii</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
- built in regex based redaction rules for:
- credentials
- creditCardNumber
- emailAddress
- ipAddress
- name
- phoneNumber
- streetAddress
- usSocialSecurityNumber
- zipcode
- url
- digits
This project used maven to build and supports Java 1.7+. Build and test with mvn clean verify
.
To contribute ensure the build passes using the above command.