You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@cipherstash/recipher encrypts a string only — add every value type, arrays and JSON documents #1812
@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
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.
An array in gives an array out, in one key request.
JSON documents, made explicitly with json(..).
A ciphertext knows the type it opens as, and Ciphertext.fromBytes(bytes, kind) reads stored bytes as a type.
Activity
feat(recipher-js): every value type, arrays and JSON documents
feat(recipher-js): every value type, arrays and JSON documents
feat(recipher-js): every value type, arrays and JSON documents
feat(recipher-js): every value type, arrays and JSON documents