PII Redaction Lib

A library to help with redacting PII data in Java

License

License

GroupId

GroupId

com.nerdvision
ArtifactId

ArtifactId

redact-pii
Last Version

Last Version

0.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

PII Redaction Lib
A library to help with redacting PII data in Java
Project URL

Project URL

https://github.com/intergral/java-pii-redactor-lib
Source Code Management

Source Code Management

https://github.com/intergral/java-pii-redactor-lib

Download redact-pii

How to add to project

<!-- https://jarcasting.com/artifacts/com.nerdvision/redact-pii/ -->
<dependency>
    <groupId>com.nerdvision</groupId>
    <artifactId>redact-pii</artifactId>
    <version>0.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.nerdvision/redact-pii/
implementation 'com.nerdvision:redact-pii:0.0.5'
// https://jarcasting.com/artifacts/com.nerdvision/redact-pii/
implementation ("com.nerdvision:redact-pii:0.0.5")
'com.nerdvision:redact-pii:jar:0.0.5'
<dependency org="com.nerdvision" name="redact-pii" rev="0.0.5">
  <artifact name="redact-pii" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.nerdvision', module='redact-pii', version='0.0.5')
)
libraryDependencies += "com.nerdvision" % "redact-pii" % "0.0.5"
[com.nerdvision/redact-pii "0.0.5"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

pii-redactor-lib

Remove personally identifiable information from text. Inspired by https://github.com/solvvy/redact-pii.

Requirements:

  • Java 1.7+

Usage

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

Maven

Add as a dependency with maven:

<dependency>
    <groupId>com.nerdvision</groupId>
    <artifactId>redact-pii</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

Supported Features

  • built in regex based redaction rules for:
    • credentials
    • creditCardNumber
    • emailAddress
    • ipAddress
    • name
    • phoneNumber
    • streetAddress
    • usSocialSecurityNumber
    • zipcode
    • url
    • digits

Building

This project used maven to build and supports Java 1.7+. Build and test with mvn clean verify.

Contributing

To contribute ensure the build passes using the above command.

com.nerdvision

Intergral

Versions

Version
0.0.5