arcjet-js icon indicating copy to clipboard operation
arcjet-js copied to clipboard

feat: add library to perform redaction of pii

Open e-moran opened this issue 6 months ago • 2 comments

Adds the library to perform redaction on text using the Arcjet sensitive info primitive.

Redaction is performed by creating a RedactionSession object with the configuration that you want to use, then calling redact() on it with some plaintext. Later on you can pass it another text with the same redacted entities in it and call unredact() and it will replace the fake data with the original data.

e-moran avatar Aug 20 '24 17:08 e-moran