ubgo is in early alpha: libraries and APIs may still change.

Skip to content
ubgo Alpha

crypt-ts

TypeScript and Node.js crypto with safe defaults over node:crypto, byte-compatible with the Go crypt.

See the repository README for how to use it.

Language
TypeScript
Go version
–
Core deps
–
Latest tag
v0.2.0
License
Apache-2.0
Go modules
–

Code from the README

import { seal, open, randomBytes, AEAD_KEY_SIZE } from "@ubgo/crypt"

const key = randomBytes(AEAD_KEY_SIZE)
const ct = seal(key, "hello, world")
const pt = open(key, ct).toString("utf8")
// pt === "hello, world"

From the crypt-ts README.