Skip to content

@cipherstash/recipher has no records — declare a record once and encrypt and decrypt whole rows and single fields #1813

In progress

Description

@coderdan

Background

@cipherstash/recipher is the TypeScript SDK on the Stack Encrypt engine (the Rust crate stack-encrypt, which encrypts and decrypts values). It is a Node addon written in Rust with napi-rs, at languages/typescript/packages/recipher-js, with a thin TypeScript layer over it. The design is in docs/plans/2026-11-22-recipher-typescript-sdk.md.

Problem

Encrypting one value at a time does not fit how applications store data: in rows of a table, some fields encrypted and searchable, some not.

Proposal

  1. Declare a record once: each field encrypted, encrypted with search indexes, or passed through in the clear.
  2. Encrypt and decrypt whole rows, or one field at a time, through the engine's dynamic::Planned, so the stored bytes are the engine's and many rows make one key request.
  3. A refusal names the record and the field.
  4. A decrypted row hides its values when it is logged.

Activity

  1. added
    enhancement
    on Nov 24, 2026
  2. self-assigned this
    on Nov 24, 2026
  3. added 3 commits that reference this issue on Nov 24, 2026
    17a20ff
    68dd83e
    ce0079f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

SDKenhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions