Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"mode": "pre",
"tag": "alpha",
"initialVersions": {
"@nestm/crypto": "0.1.0-alpha.0"
},
"changesets": ["initial-crypto-release"]
"mode": "pre",
"tag": "alpha",
"initialVersions": {
"@nestm/crypto": "0.1.0-alpha.0"
},
"changesets": [
"initial-crypto-release",
"recipient-addressed-seal",
"secure-field-adapters"
]
}
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @nestm/crypto

## 0.1.0-alpha.1

### Minor Changes

- a90d79a: Add `@nestm/crypto/keys`: X25519 keypair generation with raw/DER conversion, an HKDF-SHA256
helper, and a recipient-addressed `sealTo`/`openFrom` primitive (ephemeral-static X25519 →
HKDF-SHA256 → AES-256-GCM) for wrapping an existing secret to a public key. The wire format is
version- and suite-tagged; the recipient public key is bound into the key schedule by the
library, the nonce is derived and never transmitted, callers may bind key-schedule `info` and
AEAD `aad`, and failures use the existing `CryptoError` codes. Independent of `DataKeyProvider`
and `CipherEngine`; `@nestm/crypto/core` stays free of NestJS, tenant, and cloud SDK imports.
- f7de164: Add tenant-aware text batches, typed value codecs, explicit NestJS HTTP field adapters, and a
schema-agnostic Prisma write-encryption processor. Existing ciphertext is authenticated before
idempotent writes, batch resources are bounded, and the new persistence APIs never accept plaintext
data-encryption keys.

## 0.1.0-alpha.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestm/crypto",
"version": "0.1.0-alpha.0",
"version": "0.1.0-alpha.1",
"description": "Authenticated encryption for NestJS 12 with AES-256-GCM, envelope key providers, tenant isolation, and HTTP/Prisma field adapters.",
"license": "MIT",
"author": "nestm",
Expand Down