# Documentation - [CipherStash Docs](https://cipherstash.com/docs): Searchable field-level encryption, identity-bound keys, and cryptographic audit trails, built into your existing Postgres stack. - [Access analytics](https://cipherstash.com/docs/concepts/access-analytics): How CipherStash Proxy identifies query patterns, redacts SQL, and associates access events with records and identities. - [CipherStash Token Service](https://cipherstash.com/docs/concepts/auth): How CTS authenticates client keys and federated identities, then issues short-lived tokens for ZeroKMS. - [Concepts](https://cipherstash.com/docs/concepts): How CipherStash keeps encrypted data useful and controls access to plaintext. - [Key management](https://cipherstash.com/docs/concepts/key-management): How ZeroKMS makes unique per-value keys practical: split control, client-side derivation, bounded compromise, immediate revocation, and batch performance without data-key caching. - [Searchable encryption](https://cipherstash.com/docs/concepts/searchable-encryption): How CipherStash keeps encrypted data useful: query capabilities, the write and query flow, PostgreSQL indexes, and the security tradeoffs. - [Deployment](https://cipherstash.com/docs/guides/deployment): Deploy CipherStash changes safely across environments, with explicit credential, migration, rollout, monitoring, and rollback gates. - [Guides](https://cipherstash.com/docs/guides): Deployment and data migration guidance for CipherStash. - [Data migration](https://cipherstash.com/docs/guides/migration): Move populated plaintext columns to searchable encryption with dual-writes, a resumable backfill, and a reversible read cutover. - [Choose your stack](https://cipherstash.com/docs/get-started/choose-your-stack): Pick an integration path: SDK or Proxy, your Postgres platform, your ORM, and your identity provider. - [Get started](https://cipherstash.com/docs/get-started): Encrypt your first field in ten minutes, then pick the integration path that matches your stack. - [Quickstart](https://cipherstash.com/docs/get-started/quickstart): Encrypt, store, query, and decrypt your first field in Postgres, using the stash CLI and @cipherstash/stack. - [What is CipherStash?](https://cipherstash.com/docs/get-started/what-is-cipherstash): Field-level encryption that stays queryable in Postgres: the mental model, the pieces, and which door to walk through. - [Integrations](https://cipherstash.com/docs/integrations): Every CipherStash integration, by category: the Postgres platforms encrypted data lives in, and the query layers that read and write it. - [Agent skills](https://cipherstash.com/docs/reference/agent-skills): Install CipherStash agent skills to give your AI coding assistant accurate knowledge of encryption setup, schema building, deployment, and integrations. - [Benchmarks](https://cipherstash.com/docs/reference/benchmarks): Query latency on encrypted columns versus plaintext PostgreSQL. Exact match and range run within 1.2-1.4x of plaintext and stay flat from 10k to 10M rows. - [Glossary](https://cipherstash.com/docs/reference/glossary): Definitions of key CipherStash concepts and terms, from ZeroKMS, keysets, and client keys to EQL, HMAC, and searchable encryption. - [Reference](https://cipherstash.com/docs/reference): Precise API documentation for EQL, the Stack SDK, Auth, the CLI, and Proxy. - [Cryptography](https://cipherstash.com/docs/security/cryptography): The canonical account of CipherStash's cryptographic design: the key hierarchy, what ZeroKMS does and does not learn, and what is cached. - [Architecture & security](https://cipherstash.com/docs/security): Trust model, cryptographic design, availability, audit, and compliance, written to be read end to end during a vendor security review. - [AI and RAG](https://cipherstash.com/docs/solutions/ai-and-rag): Protect sensitive source text and metadata in AI and retrieval-augmented generation pipelines without giving the database plaintext. - [Data residency](https://cipherstash.com/docs/solutions/data-residency): Meet data residency rules with regional ZeroKMS deployment, a dual-party key split, and multi-region patterns for cross-border access. - [Solutions](https://cipherstash.com/docs/solutions): What CipherStash solves: protecting sensitive data, AI and RAG pipelines, data residency, and provable access. - [Provable access control](https://cipherstash.com/docs/solutions/provable-access): Bind decryption to an authenticated identity with lock contexts, so access to data is cryptographically demonstrable rather than merely logged. - [CipherStash vs AWS KMS](https://cipherstash.com/docs/concepts/compare/aws-kms): Compare AWS KMS envelope encryption with CipherStash ZeroKMS: trust boundaries, per-value keys, batching, audit, searchable encryption, and where each fits. - [CipherStash vs homomorphic encryption](https://cipherstash.com/docs/concepts/compare/fhe): Compare CipherStash searchable encryption with fully homomorphic encryption: supported computations, performance, leakage, PostgreSQL integration, and where each fits. - [CipherStash vs HashiCorp Vault](https://cipherstash.com/docs/concepts/compare/hashicorp-vault): Why ZeroKMS is a faster and stronger security model than HashiCorp Vault Transit for high-volume application data encryption. - [Comparisons](https://cipherstash.com/docs/concepts/compare): How CipherStash compares with cloud key management, HashiCorp Vault, hardware security modules, and fully homomorphic encryption. - [ZeroKMS vs hardware security modules](https://cipherstash.com/docs/concepts/compare/zerokms-vs-hsm): Compare ZeroKMS with dedicated hardware security modules: custody, trust boundaries, integration, availability, per-value keys, and complementary deployment patterns. - [DynamoDB](https://cipherstash.com/docs/integrations/aws/dynamodb): Encrypt DynamoDB attributes with @cipherstash/stack, including bulk operations and equality lookups over HMAC attributes. - [Overview](https://cipherstash.com/docs/integrations/drizzle): Encrypted columns with Drizzle ORM: pick a concrete EQL column type, and capability-checked operators encrypt your query operands for you. - [Supabase Auth](https://cipherstash.com/docs/integrations/supabase/auth): Federate the Supabase Auth session into CipherStash so encryption authenticates as the signed-in user — then, optionally, lock decryption to that user's identity. - [Edge Functions](https://cipherstash.com/docs/integrations/supabase/edge-functions): Run CipherStash encryption inside Supabase Edge Functions using the @cipherstash/stack WebAssembly build, with the CipherStash token cached across invocations in an HTTP-only cookie. - [Overview](https://cipherstash.com/docs/integrations/supabase): Add searchable application-level encryption to Supabase while keeping the Supabase client, Auth, Row Level Security, and your choice of Postgres ORM. - [Quickstart](https://cipherstash.com/docs/integrations/supabase/quickstart): Encrypt, store, and query your first field in Supabase with EQL and the encrypted Supabase JavaScript client. - [supabase-js](https://cipherstash.com/docs/integrations/supabase/supabase-js): Use the encryptedSupabase wrapper for transparent encryption, decryption, filtering, and ordering through the Supabase JavaScript client. - [Booleans](https://cipherstash.com/docs/reference/eql/booleans): Encrypted booleans are storage-only by design: public.eql_v3_boolean stores and decrypts, carries no index terms, and blocks every comparison. - [Core concepts](https://cipherstash.com/docs/reference/eql/core-concepts): The model behind every EQL page: domain variants that declare capability, the encrypted payload envelope, the typed-operand rule, and fail-loud blockers. - [Dates & times](https://cipherstash.com/docs/reference/eql/dates-and-times): The complete reference for encrypted date and timestamp columns: the domain variants, the payload they carry, and time-window, newest-first, and MIN/MAX queries. - [Filtering](https://cipherstash.com/docs/reference/eql/filtering): WHERE-clause patterns on encrypted columns: equality, IN lists, ranges and BETWEEN, text token matching, JSON containment, and combining encrypted and plaintext predicates. - [Functions](https://cipherstash.com/docs/reference/eql/functions): Generated catalog of EQL SQL functions and operators (EQL 3.0.4). - [Grouping & aggregates](https://cipherstash.com/docs/reference/eql/grouping-and-aggregates): GROUP BY on the equality term, eql_v3.grouped_value, DISTINCT ON, COUNT, and eql_v3.min/max on encrypted columns — and why SUM and AVG stay client-side. - [EQL](https://cipherstash.com/docs/reference/eql): Encrypt Query Language (EQL) installs encrypted column types and operators into Postgres as plain SQL — encryption itself happens in your client. - [Indexes](https://cipherstash.com/docs/reference/eql/indexes): Create Postgres indexes on encrypted columns, including unique indexes on HMAC equality terms. - [Joins](https://cipherstash.com/docs/reference/eql/joins): Equijoins on encrypted columns: the same-keyset and matching-variant constraint, IN (subquery) and set operations, a worked example, and how to diagnose a join that returns nothing. - [JSON](https://cipherstash.com/docs/reference/eql/json): The complete reference for encrypted JSON documents with public.eql_v3_json_search — the ste_vec payload shape, value-selector containment, field access, and path queries over ciphertext, with the native jsonb operators that don't apply blocked outright. - [Numbers](https://cipherstash.com/docs/reference/eql/numbers): The complete reference for encrypted numeric columns: the int, float, and numeric domain variants, the ordering term they carry, and range, ORDER BY, and MIN/MAX queries. - [Sorting](https://cipherstash.com/docs/reference/eql/sorting): ORDER BY on encrypted columns: which variants sort, when to write the sort key in extractor form, keyset pagination, and the ::jsonb projection trap. - [Text](https://cipherstash.com/docs/reference/eql/text): The complete reference for encrypted text columns: every text domain variant, the multi-term payload, why LIKE is gone everywhere, and @@ bloom-filter fuzzy match as the encrypted free-text search. - [Configuration](https://cipherstash.com/docs/reference/proxy/configuration): Install and configure CipherStash Proxy: Docker, TOML and environment variables, logging, Prometheus metrics, and the CLI. - [Errors](https://cipherstash.com/docs/reference/proxy/errors): Errors returned by CipherStash Proxy, grouped by category, with likely causes and steps to diagnose and resolve each one. - [Proxy](https://cipherstash.com/docs/reference/proxy): Configuration, message flow, multitenant operation, and error reference for CipherStash Proxy. - [Message flow](https://cipherstash.com/docs/reference/proxy/message-flow): How CipherStash Proxy handles PostgreSQL Parse and Bind messages to transparently encrypt and decrypt query parameters. - [Multitenant operation](https://cipherstash.com/docs/reference/proxy/multitenant): Scope CipherStash Proxy connections to tenant-specific keysets and manage encrypted mapping at runtime. - [Overview](https://cipherstash.com/docs/reference/stack): The core @cipherstash/stack package for client-side encryption, searchable schemas, identity controls, and encrypted query operands. - [Usage](https://cipherstash.com/docs/reference/stack/usage): Install @cipherstash/stack and use its core encryption client with an EQL v3 encrypted column. - [Billing](https://cipherstash.com/docs/reference/workspace/billing): How CipherStash per-workspace billing works, including plans, upgrades, downgrades, and Stripe. - [Configuration](https://cipherstash.com/docs/reference/workspace/configuration): Configure a CipherStash workspace for local development and production: the workspace CRN, client and access keys, and keyset selection. - [Workspace & account](https://cipherstash.com/docs/reference/workspace): Workspace configuration, organization and workspace members, and per-workspace billing. - [Members](https://cipherstash.com/docs/reference/workspace/members): Manage CipherStash organization members and workspace memberships, and onboard developer devices for local development. - [Compliance](https://cipherstash.com/docs/security/compliance): How CipherStash capabilities support a compliance control design, and which responsibilities remain with the customer. - [Deployment](https://cipherstash.com/docs/integrations/prisma/deployment): Deploy CipherStash schema changes, backfills, indexes, and credentials safely with Prisma ORM 8. - [Overview](https://cipherstash.com/docs/integrations/prisma): Searchable field-level encryption for Prisma ORM 8: declare encrypted columns in schema.prisma and query them with the Prisma ORM. - [Prisma Compute](https://cipherstash.com/docs/integrations/prisma/prisma-compute): Deploy a CipherStash-enabled Prisma ORM 8 application on Prisma Compute. - [Prisma Postgres](https://cipherstash.com/docs/integrations/prisma/prisma-postgres): Connect the CipherStash Prisma ORM 8 integration to Prisma's managed Postgres service. - [Quickstart](https://cipherstash.com/docs/integrations/prisma/quickstart): Declare, migrate, write, and query your first encrypted field with CipherStash and Prisma ORM 8. - [Schema and queries](https://cipherstash.com/docs/integrations/prisma/schema-and-queries): CipherStash column constructors, runtime envelopes, and encrypted query operators for Prisma ORM 8. - [Access keys](https://cipherstash.com/docs/reference/auth/access-keys): Create and manage access keys for production applications, CI, and workspace automation. - [Client keys](https://cipherstash.com/docs/reference/auth/clients): Understand device-backed and application client keys, keyset grants, revocation, and deployment use. - [Auth](https://cipherstash.com/docs/reference/auth): Authentication and credential reference for local development, production services, and identity-bound encryption. - [OIDC providers](https://cipherstash.com/docs/reference/auth/oidc-configuration): Register an identity provider so cryptographic operations can be authenticated as the signed-in end user. - [stash auth](https://cipherstash.com/docs/reference/cli/auth): Reference for the `stash auth` commands. - [stash db](https://cipherstash.com/docs/reference/cli/db): Reference for the `stash db` commands. - [stash doctor](https://cipherstash.com/docs/reference/cli/doctor): Diagnose install problems (native binaries, runtime) - [stash encrypt](https://cipherstash.com/docs/reference/cli/encrypt): Reference for the `stash encrypt` commands. - [stash env](https://cipherstash.com/docs/reference/cli/env): Mint deployment credentials and print them as env vars - [stash eql](https://cipherstash.com/docs/reference/cli/eql): Reference for the `stash eql` commands. - [stash impl](https://cipherstash.com/docs/reference/cli/impl): Execute the plan with a local agent - [CLI](https://cipherstash.com/docs/reference/cli): Command reference for the stash CLI, generated from v1.1.1. - [stash init](https://cipherstash.com/docs/reference/cli/init): Initialize CipherStash for your project - [stash manifest](https://cipherstash.com/docs/reference/cli/manifest): Print the structured, versioned command surface - [stash plan](https://cipherstash.com/docs/reference/cli/plan): Draft a reviewable encryption plan at .cipherstash/plan.md - [stash schema](https://cipherstash.com/docs/reference/cli/schema): Reference for the `stash schema` commands. - [stash status](https://cipherstash.com/docs/reference/cli/status): Displays implementation status - [stash telemetry](https://cipherstash.com/docs/reference/cli/telemetry): Manage anonymous usage analytics - [stash wizard](https://cipherstash.com/docs/reference/cli/wizard): AI-guided encryption setup (reads your codebase) - [@cipherstash/stack-drizzle](https://cipherstash.com/docs/integrations/drizzle/api-reference): API reference for @cipherstash/stack-drizzle: every exported type, function, and class, with signatures, parameters, and usage. - [@cipherstash/stack-supabase](https://cipherstash.com/docs/integrations/supabase/api-reference): API reference for @cipherstash/stack-supabase: every exported type, function, and class, with signatures, parameters, and usage. - [EQL v2](https://cipherstash.com/docs/reference/eql/v2): PostgreSQL types, operators, and functions for querying encrypted data with EQL v2 (v2.2) — the eql_v2_encrypted type and searchable index types. - [Setting up indexes](https://cipherstash.com/docs/reference/eql/v2/indexes): Create PostgreSQL indexes for encrypted columns. Index syntax differs between self-hosted PostgreSQL and managed databases like Supabase. - [The CipherCell](https://cipherstash.com/docs/reference/eql/v2/payload): Understand the CipherCell, the CipherStash JSON format that stores ciphertext, searchable encrypted metadata, and fields for querying encrypted data via EQL. - [Searchable encryption queries](https://cipherstash.com/docs/reference/eql/v2/queries): Equality, match, and range query patterns for encrypted PostgreSQL columns, with SDK predicates and raw SQL forms. - [codec-types](https://cipherstash.com/docs/integrations/prisma/api-reference/codec-types): codec-types is a module in @cipherstash/stack-prisma. TypeScript API reference with its signature, parameters, and usage. - [column-types](https://cipherstash.com/docs/integrations/prisma/api-reference/column-types): column-types is a module in @cipherstash/stack-prisma. TypeScript API reference with its signature, parameters, and usage. - [control](https://cipherstash.com/docs/integrations/prisma/api-reference/control): control is a module in @cipherstash/stack-prisma. TypeScript API reference with its signature, parameters, and usage. - [@cipherstash/stack-prisma](https://cipherstash.com/docs/integrations/prisma/api-reference): API reference for @cipherstash/stack-prisma: every exported type, function, and class, with signatures, parameters, and usage. - [operation-types](https://cipherstash.com/docs/integrations/prisma/api-reference/operation-types): operation-types is a module in @cipherstash/stack-prisma. TypeScript API reference with its signature, parameters, and usage. - [pack](https://cipherstash.com/docs/integrations/prisma/api-reference/pack): pack is a module in @cipherstash/stack-prisma. TypeScript API reference with its signature, parameters, and usage. - [runtime](https://cipherstash.com/docs/integrations/prisma/api-reference/runtime): runtime is a module in @cipherstash/stack-prisma. TypeScript API reference with its signature, parameters, and usage. - [stack](https://cipherstash.com/docs/integrations/prisma/api-reference/stack): stack is a module in @cipherstash/stack-prisma. TypeScript API reference with its signature, parameters, and usage. - [v3](https://cipherstash.com/docs/integrations/prisma/api-reference/v3): v3 is a module in @cipherstash/stack-prisma. TypeScript API reference with its signature, parameters, and usage. - [Package exports](https://cipherstash.com/docs/reference/stack/api-reference/Package-exports): Exports available from the `@cipherstash/stack` package root. Package exports in the @cipherstash/stack TypeScript API reference. - [adapter-kit](https://cipherstash.com/docs/reference/stack/api-reference/adapter-kit): adapter-kit is a module in @cipherstash/stack. TypeScript API reference with its signature, parameters, and usage. - [dynamodb](https://cipherstash.com/docs/reference/stack/api-reference/dynamodb): dynamodb is a module in @cipherstash/stack. TypeScript API reference with its signature, parameters, and usage. - [encryption](https://cipherstash.com/docs/reference/stack/api-reference/encryption): encryption is a module in @cipherstash/stack. TypeScript API reference with its signature, parameters, and usage. - [encryption/v3](https://cipherstash.com/docs/reference/stack/api-reference/encryption.v3): encryption/v3 is a module in @cipherstash/stack. TypeScript API reference with its signature, parameters, and usage. - [eql/v3](https://cipherstash.com/docs/reference/stack/api-reference/eql.v3): eql/v3 is a module in @cipherstash/stack. TypeScript API reference with its signature, parameters, and usage. - [errors](https://cipherstash.com/docs/reference/stack/api-reference/errors): errors is a module in @cipherstash/stack. TypeScript API reference with its signature, parameters, and usage. - [identity](https://cipherstash.com/docs/reference/stack/api-reference/identity): identity is a module in @cipherstash/stack. TypeScript API reference with its signature, parameters, and usage. - [@cipherstash/stack](https://cipherstash.com/docs/reference/stack/api-reference): API reference for @cipherstash/stack: every exported type, function, and class, with signatures, parameters, and usage. - [schema](https://cipherstash.com/docs/reference/stack/api-reference/schema): schema is a module in @cipherstash/stack. TypeScript API reference with its signature, parameters, and usage. - [types-public](https://cipherstash.com/docs/reference/stack/api-reference/types-public): types-public is a module in @cipherstash/stack. TypeScript API reference with its signature, parameters, and usage. - [wasm-inline](https://cipherstash.com/docs/reference/stack/api-reference/wasm-inline): wasm-inline is a module in @cipherstash/stack. TypeScript API reference with its signature, parameters, and usage.