Laravel package Laranon offers reversible PII anonymization for LLM pipelines
A developer building a legal-tech AI product has released Laranon, an open-source Laravel package that anonymizes personally identifiable information before it is sent to a large language model. The tool replaces sensitive data such as names, national IDs, IBANs, and phone numbers with stable placeholder tokens, then restores the original values in the model's response. Unlike simple regex-based redaction, Laranon validates identifiers using checksum algorithms and tokenizes names at the word level to reduce both false positives and false negatives. By default, the token map is held in memory and discarded at the end of each request, meaning no sensitive data is written to a database unless an optional vault is configured. The package is installable via a single Composer command and is designed to work across full chat sessions, including streamed responses.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in