Package category
Cryptography and hashing
Hashing, encryption, signing, random values and encoding.
697 packages2 comparisons
Packages compared
697 packages
| Package | Weekly downloads | 12-month change | 52 weeks | Gzip | Last release | Module | Types | Categories |
|---|---|---|---|---|---|---|---|---|
| seedrandom Seeded random number generator for Javascript. | 6.3m | +98% | - | 7 years ago 3.0.5 | CommonJS | None | Cryptography and hashing | |
| js-md4 A simple MD4 hash function for JavaScript supports UTF-8 encoding. | 5.9m | +132% | - | 9 years ago 0.3.2 | CommonJS | None | Cryptography and hashing | |
| base-64 A robust base64 encoder/decoder that is fully compatible with `atob()` and `btoa()`, written in JavaScript. | 5.8m | +86% | - | 5 years ago 1.0.0 | CommonJS | None | Cryptography and hashing | |
| murmurhash-js Native JS murmur hash implementation | 5m | +150% | - | 12 years ago 1.0.0 | CommonJS | None | Cryptography and hashing | |
| @peculiar/webcrypto A WebCrypto Polyfill for NodeJS | 5m | +93% | - | 4 months ago 1.7.1 | ESM + CommonJS | Bundled | Cryptography and hashing | |
| webcrypto-core Common layer to be used by crypto libraries based on WebCrypto API for input validation. | 5m | +104% | - | 4 months ago 1.9.2 | ESM + CommonJS | Bundled | Cryptography and hashing | |
| base64url For encoding to/from base64urls | 5m | +78% | - | 7 years ago 3.0.1 | CommonJS | Bundled | Cryptography and hashing | |
| libbase64 Encode and decode base64 encoded strings | 4.8m | +201% | - | 2 years ago 1.3.0 | CommonJS | None | Cryptography and hashing | |
| bcrypt A bcrypt library for NodeJS. | 4.5m | +82% | - | 1 year ago 6.0.0 | CommonJS | None | Cryptography and hashing, Authentication and authorisation | |
| js-md5 A simple MD5 hash function for JavaScript supports UTF-8 encoding. | 4.4m | +1118% | - | 2 months ago 0.9.2 | ESM + CommonJS | Bundled | Cryptography and hashing | |
| @lukeed/uuid A tiny (230B) and fast UUID (v4) generator for Node and the browser | 4m | +187% | - | 3 years ago 2.0.1 | ESM + CommonJS | Bundled | Cryptography and hashing | |
| string-hash fast string hashing function | 3.9m | +49% | - | 9 years ago 1.1.3 | CommonJS | None | Cryptography and hashing | |
| js-sha256 A simple SHA-256 / SHA-224 hash function for JavaScript supports UTF-8 encoding. | 3.6m | +79% | - | 1 month ago 1.0.0 | ESM + CommonJS | Bundled | Cryptography and hashing | |
| rfc4648 Encoding and decoding for base64, base32, base16, and friends | 3.5m | +112% | - | 1 year ago 1.5.4 | ESM + CommonJS | Bundled | Cryptography and hashing | |
| @hexagon/base64 Base64 and base64url to string or arraybuffer, and back. Node, Deno or browser. | 3.3m | +452% | - | 1 year ago 2.0.4 | ESM + CommonJS | Bundled | Strings and text, Cryptography and hashing | |
| node-rsa RSA library for Node.js and browsers | 3.1m | +210% | - | 4 months ago 2.0.0 | ESM + CommonJS | Bundled | Cryptography and hashing | |
| libsodium The Sodium cryptographic library compiled to pure JavaScript (raw library, no wrappers) | 3m | +193% | - | 5 months ago 0.8.4 | ESM + CommonJS | None | Cryptography and hashing | |
| js-sha3 A simple SHA-3 / Keccak / SHAKE / cSHAKE / KMAC / TupleHash / ParallelHash hash function for JavaScript supports UTF-8 encoding. | 3m | +1% | - | 1 month ago 0.13.0 | ESM + CommonJS | Bundled | Cryptography and hashing | |
| libsodium-wrappers The Sodium cryptographic library compiled to pure JavaScript (wrappers) | 3m | +190% | - | 5 months ago 0.8.4 | ESM + CommonJS | Bundled | Cryptography and hashing | |
| aes-js A pure JavaScript implementation of the AES block cipher and all common modes of operation. | 2.9m | +38% | - | 7 years ago 3.1.2 | CommonJS | None | Cryptography and hashing | |
| expo-crypto Provides cryptography primitives for Android, iOS and web. | 2.9m | +426% | - | 14 days ago 57.0.3 | CommonJS | Bundled | Cryptography and hashing, React | |
| uid-promise generates a cryptographically strong random uid | 2.8m | +200% | - | 3 years ago 2.0.5 | ESM + CommonJS | Bundled | Cryptography and hashing | |
| @noble/ed25519 Fastest 5KB JS implementation of ed25519 EDDSA signatures compliant with RFC8032, FIPS 186-5 & ZIP215 | 2.8m | +855% | - | 28 days ago 3.2.0 | ESM only | Bundled | Cryptography and hashing | |
| scuid Collision-resistant IDs optimized for horizontal scaling and performance | 2.7m | +5% | - | 8 years ago 1.1.0 | CommonJS | None | Cryptography and hashing | |
| canonicalize JSON canonicalize function | 2.6m | +377% | - | 6 days ago 5.1.0 | ESM only | Bundled | Cryptography and hashing | |
| fast-base64-decode A fast Base64 decoder with a low level API. If you want a high level API, look at [base64-js](https://github.com/beatgammit/base64-js). | 2.4m | +64% | - | 3 years ago 2.0.0 | ESM only | Bundled | Cryptography and hashing | |
| secure-library-loader Encrypt a library's source into a single portable, password-protected file, then decrypt, install, and load its modules at runtime. | 2.1m | - | - | 25 days ago 0.1.3 | CommonJS | None | Cryptography and hashing | |
| uuidv7 A JavaScript implementation of UUID version 7 | 2m | +338% | - | 6 months ago 1.2.1 | ESM + CommonJS | Bundled | Cryptography and hashing | |
| @pnpm/crypto.base32-hash Create a base32 hash | 2m | +51% | - | 1 year ago 900.0.0 | CommonJS | Bundled | Cryptography and hashing | |
| react-native-get-random-values A small implementation of `crypto.getRandomValues` for React Native. This is useful to polyfill for libraries like [uuid](https://www.npmjs.com/package/uuid) that depend on it. | 1.9m | +65% | - | 11 months ago 2.0.0 | - | None | Cryptography and hashing, React | |
| blueimp-md5 JavaScript MD5 implementation. Compatible with server-side environments like Node.js, module loaders like RequireJS, Browserify or webpack and all web browsers. | 1.8m | +27% | - | 4 years ago 2.19.0 | CommonJS | None | Cryptography and hashing | |
| @phc/format PHC string format serializer/deserializer | 1.7m | +322% | - | 6 years ago 1.0.0 | - | - | Cryptography and hashing | |
| argon2 An Argon2 library for Node | 1.6m | +334% | - | 2 months ago 0.45.1 | - | - | Cryptography and hashing | |
| jssha jsSHA implements the complete Secure Hash Standard (SHA) family (SHA-1, SHA-224/256/384/512, SHA3-224/256/384/512, SHAKE128/256, cSHAKE128/256, and KMAC128/256) with HMAC | 1.6m | +28% | - | 2 months ago 3.3.2 | - | - | Cryptography and hashing | |
| tempfile Get a random temporary file path | 1.5m | -2% | - | 7 months ago 6.0.1 | - | - | Cryptography and hashing | |
| gud Create a 'gud nuff' (not cryptographically secure) globally unique id | 1.5m | -5% | - | 8 years ago 1.0.0 | - | - | Cryptography and hashing | |
| typeid-js Official implementation of the TypeID specification in TypeScript. TypeIDs are type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs | 1.4m | +430% | - | 1 year ago 1.2.0 | ESM + CommonJS | Bundled | Cryptography and hashing | |
| @hapi/cryptiles General purpose crypto utilities | 1.3m | - | - | - | 9 months ago 6.0.3 | - | - | Cryptography and hashing |
| deterministic-object-hash A deterministic object hashing algorithm for Node.js. | 1.2m | +83% | - | 2 years ago 2.0.2 | - | - | Cryptography and hashing | |
| csprng Secure random numbers of any size in any base | 1.2m | +72% | - | 9 years ago 0.1.2 | CommonJS | None | Cryptography and hashing | |
| @hapi/iron Encapsulated tokens (encrypted and mac'ed objects) | 1.2m | - | - | - | 3 years ago 7.0.1 | CommonJS | Bundled | Cryptography and hashing, Authentication and authorisation |
| crypto-randomuuid Polyfill crypto.randomUUID | 1.1m | -58% | - | 5 years ago 1.0.0 | CommonJS | None | Cryptography and hashing, Polyfills and shims | |
| hash-wasm Lightning fast hash functions for browsers and Node.js using hand-tuned WebAssembly binaries (MD4, MD5, SHA-1, SHA-2, SHA-3, Keccak, BLAKE2, BLAKE3, PBKDF2, Argon2, bcrypt, scrypt, Adler-32, CRC32, CRC32C, RIPEMD-160, HMAC, xxHash, SM3, Whirlpool) | 1.1m | +177% | - | 1 year ago 4.12.0 | ESM + CommonJS | Bundled | Cryptography and hashing, DOM and browser utilities | |
| crypto This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name. | 1.1m | -4% | - | 9 years ago 1.0.1 | CommonJS | None | Cryptography and hashing | |
| xml-encryption [](https://travis-ci.org/auth0/node-xml-encryption) | 1.1m | +119% | - | 1 month ago 6.0.1 | CommonJS | None | Cryptography and hashing | |
| @otplib/plugin-crypto-noble Pure JavaScript crypto implementation using noble-hashes for otplib | 1.1m | - | - | - | 1 month ago 13.5.0 | ESM + CommonJS | Bundled | Cryptography and hashing |
| @pnpm/crypto.polyfill Polyfill for functions in the crypto library | 1.1m | - | - | - | 1 year ago 1000.1.0 | CommonJS | Bundled | Cryptography and hashing |
| base64-stream Contains new Node.js v0.10 style stream classes for encoding / decoding Base64 data | 1.1m | +77% | - | 7 years ago 1.0.0 | - | None | Cryptography and hashing | |
| inline-source-map Adds source mappings and base64 encodes them, so they can be inlined in your generated file. | 1m | -16% | - | 2 years ago 0.6.3 | CommonJS | None | Cryptography and hashing | |
| node-object-hash Node.js object hash library with properties/arrays sorting to provide constant hashes | 1m | +36% | - | 1 year ago 3.1.1 | CommonJS | Bundled | Cryptography and hashing |
12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.
- seedrandomSeeded random number generator for Javascript.
- js-md4A simple MD4 hash function for JavaScript supports UTF-8 encoding.
- base-64A robust base64 encoder/decoder that is fully compatible with `atob()` and `btoa()`, written in JavaScript.
- murmurhash-jsNative JS murmur hash implementation
- @peculiar/webcryptoA WebCrypto Polyfill for NodeJS
- webcrypto-coreCommon layer to be used by crypto libraries based on WebCrypto API for input validation.
- base64urlFor encoding to/from base64urls
- libbase64Encode and decode base64 encoded strings
- bcryptA bcrypt library for NodeJS.
- js-md5A simple MD5 hash function for JavaScript supports UTF-8 encoding.
- @lukeed/uuidA tiny (230B) and fast UUID (v4) generator for Node and the browser
- string-hashfast string hashing function
- js-sha256A simple SHA-256 / SHA-224 hash function for JavaScript supports UTF-8 encoding.
- rfc4648Encoding and decoding for base64, base32, base16, and friends
- @hexagon/base64Base64 and base64url to string or arraybuffer, and back. Node, Deno or browser.
- node-rsaRSA library for Node.js and browsers
- libsodiumThe Sodium cryptographic library compiled to pure JavaScript (raw library, no wrappers)
- js-sha3A simple SHA-3 / Keccak / SHAKE / cSHAKE / KMAC / TupleHash / ParallelHash hash function for JavaScript supports UTF-8 encoding.
- libsodium-wrappersThe Sodium cryptographic library compiled to pure JavaScript (wrappers)
- aes-jsA pure JavaScript implementation of the AES block cipher and all common modes of operation.
- expo-cryptoProvides cryptography primitives for Android, iOS and web.
- uid-promisegenerates a cryptographically strong random uid
- @noble/ed25519Fastest 5KB JS implementation of ed25519 EDDSA signatures compliant with RFC8032, FIPS 186-5 & ZIP215
- scuidCollision-resistant IDs optimized for horizontal scaling and performance
- canonicalizeJSON canonicalize function
- fast-base64-decodeA fast Base64 decoder with a low level API. If you want a high level API, look at [base64-js](https://github.com/beatgammit/base64-js).
- secure-library-loaderEncrypt a library's source into a single portable, password-protected file, then decrypt, install, and load its modules at runtime.
- uuidv7A JavaScript implementation of UUID version 7
- @pnpm/crypto.base32-hashCreate a base32 hash
- react-native-get-random-valuesA small implementation of `crypto.getRandomValues` for React Native. This is useful to polyfill for libraries like [uuid](https://www.npmjs.com/package/uuid) that depend on it.
- blueimp-md5JavaScript MD5 implementation. Compatible with server-side environments like Node.js, module loaders like RequireJS, Browserify or webpack and all web browsers.
- @phc/formatPHC string format serializer/deserializer
- argon2An Argon2 library for Node
- jsshajsSHA implements the complete Secure Hash Standard (SHA) family (SHA-1, SHA-224/256/384/512, SHA3-224/256/384/512, SHAKE128/256, cSHAKE128/256, and KMAC128/256) with HMAC
- tempfileGet a random temporary file path
- gudCreate a 'gud nuff' (not cryptographically secure) globally unique id
- typeid-jsOfficial implementation of the TypeID specification in TypeScript. TypeIDs are type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs
- @hapi/cryptilesGeneral purpose crypto utilities
- deterministic-object-hashA deterministic object hashing algorithm for Node.js.
- csprngSecure random numbers of any size in any base
- @hapi/ironEncapsulated tokens (encrypted and mac'ed objects)
- crypto-randomuuidPolyfill crypto.randomUUID
- hash-wasmLightning fast hash functions for browsers and Node.js using hand-tuned WebAssembly binaries (MD4, MD5, SHA-1, SHA-2, SHA-3, Keccak, BLAKE2, BLAKE3, PBKDF2, Argon2, bcrypt, scrypt, Adler-32, CRC32, CRC32C, RIPEMD-160, HMAC, xxHash, SM3, Whirlpool)
- cryptoThis package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
- xml-encryption[](https://travis-ci.org/auth0/node-xml-encryption)
- @otplib/plugin-crypto-noblePure JavaScript crypto implementation using noble-hashes for otplib
- @pnpm/crypto.polyfillPolyfill for functions in the crypto library
- base64-streamContains new Node.js v0.10 style stream classes for encoding / decoding Base64 data
- inline-source-mapAdds source mappings and base64 encodes them, so they can be inlined in your generated file.
- node-object-hashNode.js object hash library with properties/arrays sorting to provide constant hashes