@nexusts/crypto
v0.9.6
Published
AES-256-GCM encryption + HMAC + scrypt/argon2
Readme
@nexusts/crypto
NexusTS — Bun-native fullstack framework
Description
AES-256-GCM encryption + HMAC + scrypt/argon2.
Authenticated encryption, HMAC sign/unsign, password hashing. Internally used by session cookies and CSRF tokens.
Install
This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.
Most apps start with just the core:
bun add @nexusts/coreThen add this module only if you need it:
bun add @nexusts/cryptoPeer dependencies
None. No external dependencies. Uses Node's built-in crypto module.
Usage
import { /* public API */ } from "@nexusts/crypto";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
