Description
noble-ciphers is an audited, minimal JavaScript implementation of the Salsa20 and ChaCha stream ciphers and of AES. It belongs to the noble cryptography family, a set of contained libraries with zero or minimal dependencies and readable TypeScript. The README says an independent security firm audited it, and that its correctness is checked with cross-library and Wycheproof tests. The ChaCha part is about 3KB gzipped, and unused code is left out of your build. It includes ChaCha20-Poly1305, XChaCha20-Poly1305, XSalsa20-Poly1305 and secretbox, several AES modes such as GCM, GCM-SIV, AES-SIV, CTR, CBC, CFB, ECB and AES key wrap, plus FF1 format-preserving encryption. A managed nonce option handles nonces automatically, and a wrapper gives the same API over native WebCrypto. You install it with npm install @noble/ciphers, or with Deno through JSR. It supports the major platforms and runtimes. React Native may need a polyfill for getRandomValues, and a standalone noble-ciphers.js file is available too.…
Highlights
- Audited minimal JavaScript ciphers
- Salsa20, ChaCha and AES modes
- About 3KB gzipped for ChaCha
- WebCrypto-compatible wrapper
- Managed nonces and FF1 format-preserving encryption
Ratings & Reviews
No ratings yet
Be the first to rate Noble Ciphers.
People also visit
Shamir Secret Sharing
Simple, independently audited, zero-dependency TypeScript implementation of…
Noble Ciphers FAQ
What is noble-ciphers?
An audited, minimal JavaScript library for the Salsa20 and ChaCha stream ciphers and for AES.
How do I install it?
npm install @noble/ciphers, or deno add jsr:@noble/ciphers. A standalone noble-ciphers.js file is also available.
Has it been audited?
The README says an independent security firm audited it, and that it is tested against cross-library and Wycheproof vectors.
Does it work in React Native?
It may need a polyfill for getRandomValues in React Native.
Which AES modes are included?
ECB, CBC, CTR, CFB, GCM, GCM-SIV, AES-SIV and AES key wrap, plus FF1 format-preserving encryption.
What are the best Noble Ciphers alternatives?
Popular alternatives to Noble Ciphers include Supernova, CyberChef and Shamir Secret Sharing. See all Noble Ciphers alternatives

