json‑seal
Lightweight, portable JSON data integrity - without the complexity.
import {
generateKeyPair,
signPayload,
verifyBackup
} from "json-seal";
const { publicKey, privateKey } = await generateKeyPair();
const sealed = await signPayload({ message: "hello" }, privateKey, publicKey);
const result = await verifyBackup(sealed);
json‑seal creates a cryptographically signed, tamper‑evident envelope around any JSON‑serializable value. It implements the full RFC 8785 JSON Canonicalization Scheme and uses RSA‑PSS signatures to guarantee both integrity and authenticity.