PIIRedact 1.0.19

Redacts the PII information i.e name, organization, location,email, ssn, driver license, passport no. ip address etc.

Install-Package PIIRedact -Version 1.0.19
dotnet add package PIIRedact --version 1.0.19
<PackageReference Include="PIIRedact" Version="1.0.19" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PIIRedact --version 1.0.19
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

PIIREdact

Redacts the PII information. This package uses Stanford NER package to identify and scrub Name, organization and location. It also redacts email, ssn, driver license, passport no. It aggressively removes any number with more than 3 consecutive digits. Use AddToWhitelist to whitelist any pattern.
In order to use this you must have JAVA 8+ installed.

Getting Started

Install the nuget package to get started.

The usage is:
var redactor = new PIIRedactor();
var redactedData = redactor.GetRedactedData("My name is John Doe. My email is m@n.o");

The redacted string looks like : My name is xxxx xxx. My email is x@x.x

If you want to whitelist any pattern i.e any number with 6-8 consecutive digits, it should be done as follows:
redactor.AddToWhitelist(new RegexFinder("\b\d{6,8}\b"));

Similarly to add a new redactable pattern follow the below syntax. It will redact any word with 6-8 consecutive digits.
redactor.Add(new RegexFinder("\b\d{6,8}\b"));

Prerequisites

In order to use this package , you have to have JAVA 8 installed. If you don't want to use java, you have to set redactor.PIIRedactorConfig.IncludeEntityRedaction = false;

Versioning

We use appveyor for versioning.

Authors

Musfiqur Rahman

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

This project uses Standford NER package.

PIIREdact

Redacts the PII information. This package uses Stanford NER package to identify and scrub Name, organization and location. It also redacts email, ssn, driver license, passport no. It aggressively removes any number with more than 3 consecutive digits. Use AddToWhitelist to whitelist any pattern.
In order to use this you must have JAVA 8+ installed.

Getting Started

Install the nuget package to get started.

The usage is:
var redactor = new PIIRedactor();
var redactedData = redactor.GetRedactedData("My name is John Doe. My email is m@n.o");

The redacted string looks like : My name is xxxx xxx. My email is x@x.x

If you want to whitelist any pattern i.e any number with 6-8 consecutive digits, it should be done as follows:
redactor.AddToWhitelist(new RegexFinder("\b\d{6,8}\b"));

Similarly to add a new redactable pattern follow the below syntax. It will redact any word with 6-8 consecutive digits.
redactor.Add(new RegexFinder("\b\d{6,8}\b"));

Prerequisites

In order to use this package , you have to have JAVA 8 installed. If you don't want to use java, you have to set redactor.PIIRedactorConfig.IncludeEntityRedaction = false;

Versioning

We use appveyor for versioning.

Authors

Musfiqur Rahman

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

This project uses Standford NER package.

Release Notes

Added license information

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.19 278 11/11/2017
1.0.18 216 11/4/2017
1.0.17 194 11/4/2017
1.0.16 213 10/30/2017
1.0.13 185 10/30/2017
1.0.12 215 10/29/2017