{"library":"chacha","type":"library","category":null,"description":"The `chacha` package provides an implementation of the ChaCha20 Poly1305 authenticated encryption algorithm, designed to be compatible with Node.js's `crypto.createCipheriv()` and `createDecipheriv()` API for AES-GCM mode. It uses the more recent IETF draft for ChaCha20-Poly1305 AEAD, which features a 96-bit nonce, distinct from earlier drafts implemented in systems like BoringSSL (though it offers a 'Legacy Aead' for compatibility). The library supports both a pure JavaScript implementation and optional native bindings for performance in Node.js environments, automatically falling back to pure JS where native bindings are unavailable or explicitly opted out. It exposes APIs for the full AEAD, the ChaCha20 stream cipher, and the Poly1305 message authentication code independently. The current stable version is 2.1.0, and while a specific release cadence isn't published, the active GitHub repository and continuous integration suggest ongoing maintenance and stability.","language":"javascript","status":"active","version":"2.1.0","tags":["javascript","chacha20","chacha","poly1305","cipher","hmac","crypto"],"last_verified":"Wed May 27","install":[{"cmd":"npm install chacha","imports":["const chacha = require('chacha');","const { createCipher } = require('chacha');","const chachaPureJs = require('chacha/browser');"]},{"cmd":"yarn add chacha","imports":[]},{"cmd":"pnpm add chacha","imports":[]}],"homepage":null,"github":"https://github.com/calvinmetcalf/chacha20poly1305","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/chacha","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/chacha/compatibility"}}