v2.21 Module
UIID Zero PII (UZP).
Use UIID without storing personally identifiable information. UZP replaces identifiers with keyed HMAC pseudonyms, so your database keeps stable references without names, emails or raw IPs.
For End Users
- Your name, email and other direct identifiers are never stored in the clear by the integrating application.
- Pseudonyms are derived with a secret key held by the operator, so they cannot be reversed by someone who only sees the database.
- You can request deletion: destroying the key makes all pseudonyms unlinkable.
Company Setup
- Create a 32+ byte secret key in your secret store (for example UZP_KEY). Never commit it.
- Import the Go package github.com/linkspreed/uiid-idp/internal/uzp in your service.
- Run your existing rows through Pseudonymizer.Rows with a policy: Pseudonymize for identifiers, Redact for free text, Keep for non-personal fields.
- Adapt existing databases by applying the same policy during migration; the pseudonyms are deterministic per domain, so joins keep working.
- To anonymize completely, call Destroy on the pseudonymizer and delete the key from your store.
Example
import "github.com/linkspreed/uiid-idp/internal/uzp"
p, err := uzp.New(key) // key: at least 32 bytes from your secret store
if err != nil {
return err
}
defer p.Destroy()
policy := uzp.PseudonymizeAll("country", "plan") // fields to keep in clear
safeRows, err := p.Rows(rows, policy)
Need code tailored to your stack? Generate ready-to-paste examples in the Developer Modules generator.
Use via API
This module is metered through the UIID API. Create an API key in your dashboard, grant it the scope uzp:use, and send it as the X-API-Key header. Requests without a key get 401; keys without the scope get 403.
- POST /api/v1/uzp/pseudonym body {"domain","value"} returns {"pseudonym"}
- POST /api/v1/uzp/rows body {"rows","keep"} (max 1000 rows) returns {"rows"}
cURL
curl -X POST https://idp.uiid.linkspreed.com/api/v1/uzp/pseudonym \
-H "X-API-Key: $UIID_API_KEY" -H "Content-Type: application/json" \
-d '{"domain":"email","value":"[email protected]"}'
Full request and response reference: UZP in the API docs.