whereismyai
Hadamask
Hadamask: Python library that protects vector database records by obscuring vector geometry and encrypting metadata.
This Python library secures vector databases against unauthorized snapshot access by altering vector geometry and encrypting metadata on the client side. Applications send embeddings through a secret orthogonal operation while keeping cosine, dot-product, and L2 search scores exact. Metadata fields use AES-256-GCM encryption with fresh nonces and length padding. Developers integrate it with Qdrant, Weaviate, Milvus, Chroma, pgvector, Elasticsearch, OpenSearch, Redis, and MongoDB Atlas. Master keys stay managed via HashiCorp Vault, AWS KMS, Google Cloud KMS, or Azure Key Vault.
Hadamask at a glance
- Best for: Software engineer
- Runs on: CLI
- Pricing: Free
- Released: November 2026
- Category: AI coding tool
- Website: github.com/cernica/hadamask
Key features
- Applies secret orthogonal operations to vector embeddings
- Encrypts metadata fields individually using AES-256-GCM
- Preserves exact cosine and dot-product search scores
- Generates keyed equality tokens for filtered fields
- Integrates with HashiCorp Vault and cloud key managers
- Connects with multiple vector databases and search engines
- Provides command line operations
Use it for
- Protecting vector database backups from unauthorized access
- Securing metadata fields in database payloads
- Maintaining exact similarity search scores on obscured data
Alternatives to Hadamask
- Wasi Python — Runs untrusted AI-generated code safely inside an isolated WebAssembly sandbox.
- zvec — It is a pure local, serverless vector database providing fast hybrid search.
- TurboVec — Fits a 10 million document corpus in 4 GB of RAM and searches faster than FAISS.
- TalaDB — Runs locally in browser, server, and mobile apps with no server required.
- VeriTok — Catches hallucinated APIs and unintended side effects before execution.
- Datadog — Consolidates observability and security data in one unified platform.
- Varlock — It secures environment variables for both humans and AI agents.
- Glider — It combines crash-safe S3 durability with fast local SSD caching for vector search.
- Pinecone — Provides high-speed, governed knowledge retrieval for AI applications.
- Garak — It checks large language models for hallucinations, data leakage, and prompt injections.
- seekdb — Unifies relational, vector, and text data for production-grade AI agents.
- Portkey — Unified API access with observability, guardrails, and caching for LLM applications.
All Hadamask alternatives