devlacruz-hashlib
Zero-Trust cryptographic hashing for Python
PythonSHA-256PrivacyCryptography
About
devlacruz-hashlib was built from a real need: before sending user data to any LLM agent or external API, PII must be anonymized deterministically. The library provides a thin, opinionated layer over Python’s standard hashlib focused on Zero-Trust Privacy by default.
Used in production in CirIAco — a knowledge management platform — to anonymize user identifiers before any AI inference call.
Design principles
- Deterministic — same input always produces the same hash, enabling consistent pseudonymization across services
- Simple API — a minimal surface area with no surprising behavior
- Privacy boundary — designed to sit at the boundary between your data and external services
Why not just use hashlib directly?
Python’s built-in hashlib is excellent. devlacruz-hashlib adds a consistent high-level interface, sane defaults (SHA-256 hex digest), and helper utilities for common patterns — making it easy to do the right thing without boilerplate.