A Go library that scans text for PII locally, no service, no network call.
Import it, call Analyze, get verified matches back with a confidence score.
How it works
Add it to your Go code directly, no service to deploy.
Pattern-based recognizers scan the text for identifiers.
Structured identifiers are checksum-validated before being flagged.
Four lines of Go
import "github.com/hoophq/alcatraz"
eng := alcatraz.NewEngine()
text := "Card 4532 0151 1283 0366, SSN 536-90-4399"
matches := eng.Analyze(text, alcatraz.Options{})
for _, m := range matches {
fmt.Println(m.EntityType, m.Score)
}Built for Go services
Runs inside your process, no round trip, no third party.
25 of 45 entity types carry a real checksum validator.
Up to ~100x faster than Presidio, with entities it doesn’t ship.
Need PII masked everywhere it moves, not just in Go?
hoop masks sensitive data across every protocol it proxies, databases, shells, and cloud consoles, with the same verified detection built into Alcatraz.