Skip to content

Add kruptein - #1236

Closed
jas- wants to merge 1 commit into
sorrycc:masterfrom
jas-:add-kruptein
Closed

jas- wants to merge 1 commit into
sorrycc:masterfrom
jas-:add-kruptein

Conversation

@jas-

@jas- jas- commented Nov 22, 2026

Copy link
Copy Markdown

Adds kruptein to the Security section.

kruptein wraps node:crypto with a small callback API, .set(secret, plaintext, [aad], cb) and .get(secret, ciphertext, [opts], cb):

  • AEAD ciphers: AES or ARIA in GCM, CCM or OCB mode, and ChaCha20-Poly1305, with additional authenticated data (AAD).
  • Key derivation with PBKDF2, scrypt or Argon2id, and an HMAC check that rejects tampered ciphertext.
  • Weak ciphers, modes and hashes are rejected. Only SHA-2 and SHA-3 hashes are accepted.
  • Output as ASN.1 DER or JSON, in base64, base64url, hex and other encodings.

It has been maintained since 2019, is tested in CI on Node.js 18 to 26 on Linux, macOS and Windows, and gets about 370k npm downloads a week (it is a dependency of connect-mongo).

@jas-
jas- deleted the add-kruptein branch November 23, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants