Skip to content

@cipherstash/recipher encrypts a string only — add every value type, arrays and JSON documents #1812

Done

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

The first version encrypts a string only. A user needs every value type JavaScript has, arrays of them, and JSON documents.

Proposal

  1. Encrypt every value in the bridge's mapping: number, bigint, boolean, Date, bytes, and the wrapper classes for a date, a fine timestamp, a decimal and a UUID.
  2. An array in gives an array out, in one key request.
  3. JSON documents, made explicitly with json(..).
  4. A ciphertext knows the type it opens as, and Ciphertext.fromBytes(bytes, kind) reads stored bytes as a type.

Activity

  1. added
    enhancement
    on Nov 24, 2026
  2. self-assigned this
    on Nov 24, 2026
  3. added 4 commits that reference this issue on Nov 24, 2026
    30f1d26
    a251427
    a5555b7
    fc5c851
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