BY HOOP.DEV / OPEN SOURCE

Catch PII before it
leaves your process

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.

Open SourceZero network callsGo native
01

Import the package

Add it to your Go code directly, no service to deploy.

import "github.com/hoophq/alcatraz"
02

Scan for PII

Pattern-based recognizers scan the text for identifiers.

eng.Analyze(text, alcatraz.Options{})
03

Verified matches only

Structured identifiers are checksum-validated before being flagged.

✓ SSN · confidence 0.95

Four lines of Go

alcatraz.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)
}
Verified matches2 entities · pattern + validator
CREDIT_CARD
Luhn checksum
98%verified
SSN
Area/group/serial validation
95%verified

Zero network calls

Runs inside your process, no round trip, no third party.

Verified, not guessed

25 of 45 entity types carry a real checksum validator.

Benchmarked against Presidio

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.