Skip to content
JS
Package category

Cryptography and hashing

Hashing, encryption, signing, random values and encoding.

697 packages2 comparisons

Packages compared

697 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
jsrsasign
opensource free pure JavaScript cryptographic library supports RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp and CAdES and JSON Web Signature(JWS)/Token(JWT)/Key(JWK)
980.1k+105%-1 month ago
11.1.5
CommonJSNoneCryptography and hashing, Authentication and authorisation
libsignal
Open Whisper Systems' libsignal for Node.js
977.9k+25794%-4 months ago
6.0.0
CommonJSBundledCryptography and hashing
short-unique-id
Generate random or sequential UUID of any length
968.9k+37%-1 year ago
5.3.2
CommonJSBundledCryptography and hashing
apache-md5
Node.js module for Apache style password encryption using md5.
909k+21%-4 years ago
1.1.8
CommonJSBundledCryptography and hashing
@node-rs/argon2
argon2-rust binding for Node.js
904k---15 days ago
2.2.1
CommonJSBundledCryptography and hashing
openpgp
OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.
888.2k+81%-1 day ago
6.3.2
ESM + CommonJSBundledCryptography and hashing
md5-o-matic
Fast and simple MD5 hashing utility with zero module dependencies. View MD5 Shootout results, http://jsperf.com/md5-shootout/39
859.1k+97%-11 years ago
0.1.1
CommonJSNoneCryptography and hashing
node-jose
A JavaScript implementation of the JSON Object Signing and Encryption (JOSE) for current web browsers and node.js-based servers
844.5k+57%-3 years ago
2.2.0
CommonJSNoneCryptography and hashing
md5-hex
Create a MD5 hash with hex encoding
840.6k-15%-2 years ago
5.0.0
ESM onlyBundledCryptography and hashing
node-uuid
Rigorous implementation of RFC4122 (v1 and v4) UUIDs.
828.4k-7%-9 years ago
1.4.8
CommonJSNoneCryptography and hashing
js-sha512
This is a simple SHA-512, SHA-384, SHA-512/224, SHA-512/256 hash functions for JavaScript supports UTF-8 encoding.
815k-2%-2 years ago
0.9.0
CommonJSNoneCryptography and hashing
sha256-uint8array
Fast SHA-256 digest hash based on Uint8Array, pure JavaScript.
811.8k+233%-21 days ago
0.12.1
ESM + CommonJSBundledCryptography and hashing
shortid
Amazingly short non-sequential url-friendly unique id generator.
803.3k+7%-1 year ago
2.2.17
CommonJSNoneCryptography and hashing
ts-md5
TypeScript MD5 implementation
797.4k+56%-1 year ago
2.0.1
ESM + CommonJSBundledTypeScript tooling, Cryptography and hashing
is-base64
Predicate that returns true if base64 string.
782.7k+82%-6 years ago
1.1.0
CommonJSNoneCryptography and hashing, Schema validation
@node-rs/argon2-linux-x64-gnu
argon2-rust binding for Node.js
765.8k---15 days ago
2.2.1
CommonJSNoneCryptography and hashing
rsa-pem-from-mod-exp
Create RSA Public Key PEM from Modulus and Exponent value in node.js
611.6k+153%-3 years ago
0.8.6
CommonJSBundledCryptography and hashing
secure-keys
Encrypt/Decrypt the values of a given object
599.9k+14%-10 years ago
1.0.0
CommonJSNoneCryptography and hashing
fnv1a-64
Tiny, fast, dependency-free 64-bit FNV-1a string hash for Node and the browser
589.4k--1 month ago
0.1.2
ESM onlyBundledCryptography and hashing
cuid
Collision-resistant ids optimized for horizontal scaling and performance. For node and browsers.
584.5k+44%-3 years ago
3.0.0
CommonJSBundledCryptography and hashing
murmurhash3js
A javascript implementation of MurmurHash3's x86 hashing algorithms.(Browser&Server)
560.5k+51%-11 years ago
3.0.1
CommonJSNoneCryptography and hashing
hash-it
Hash any object based on its value
550.5k+90%-21 days ago
7.1.1
ESM + CommonJSBundledCryptography and hashing
@aws-crypto/client-node
The *client-node* module includes all of the modules you need to use the AWS Encryption SDK for JavaScript with Node.js.
523.1k---2 months ago
5.0.2
CommonJSBundledCryptography and hashing, Cloud SDKs
webcrypto-shim
Web Cryptography API shim for legacy browsers
506.9k+10%-5 years ago
0.1.7
CommonJSNoneCryptography and hashing
@hpke/core
A Hybrid Public Key Encryption (HPKE) core module for various JavaScript runtimes
504.1k---6 months ago
1.9.0
ESM + CommonJSBundledCryptography and hashing, Security
@hpke/common
A Hybrid Public Key Encryption (HPKE) internal-use common module for @hpke family modules.
503.3k---6 months ago
1.10.1
ESM + CommonJSBundledCryptography and hashing, Security
@sindresorhus/fnv1a
FNV-1a non-cryptographic hash function
492.6k---2 years ago
3.1.0
ESM onlyBundledCryptography and hashing
@node-rs/argon2-linux-x64-musl
argon2-rust binding for Node.js
490.1k---15 days ago
2.2.1
CommonJSNoneCryptography and hashing
ulidx
ULID generator for NodeJS and the browser
475.2k+272%-2 years ago
2.4.1
ESM + CommonJSBundledCryptography and hashing
uuidv4
uuidv4 creates v4 UUIDs.
464.4k-3%-4 years ago
6.2.13
CommonJSBundledCryptography and hashing
@hpke/chacha20poly1305
A Hybrid Public Key Encryption (HPKE) module extension for ChaCha20/Poly1305
447.5k---6 months ago
1.8.0
ESM + CommonJSBundledCryptography and hashing, Security
short-uuid
Create and translate standard UUIDs with shorter formats.
446.3k+31%-9 months ago
6.0.3
CommonJSBundledCryptography and hashing
hash-stream-validation
Hash a stream of data, then validate
424.4k-5%-6 years ago
0.2.4
CommonJSNoneCryptography and hashing
base64-url
Base64 encode, decode, escape and unescape for URL applications
406.7k+7%-6 years ago
2.3.3
CommonJSNoneCryptography and hashing
react-native-uuid
react-native-uuid is a zero-dependency TypeScript implementation of RFC4122.
395.4k+73%-6 months ago
2.0.4
CommonJSBundledCryptography and hashing
utility
A collection of useful utilities.
345.4k+34%-1 year ago
2.5.0
ESM + CommonJSBundledCryptography and hashing
hashids
Generate YouTube-like ids from numbers. Use Hashids when you do not want to expose your database ids to the user.
343k+49%-3 years ago
2.3.0
ESM + CommonJSBundledCryptography and hashing
@loaders.gl/crypto
Cryptographic/hashing plugins for loaders.gl
342.5k---5 days ago
4.5.2
ESM + CommonJSBundledCryptography and hashing
sha3
The Keccak family of hashing algorithms.
341.9k+50%-5 years ago
2.1.4
CommonJSBundledCryptography and hashing
urlsafe-base64
URL Safe Base64 encoding
339k+64%-11 years ago
1.0.0
CommonJSNoneCryptography and hashing, URLs and query strings
cryptr
a simple encrypt and decrypt module for node.js
331.6k+129%-1 year ago
6.4.0
CommonJSBundledCryptography and hashing
rusha
A high-performance pure-javascript SHA1 implementation suitable for large binary data.
316.7k-5%-5 years ago
0.8.14
CommonJSNoneCryptography and hashing
poseidon-lite
Lightweight poseidon hash
316.1k+57%-2 years ago
0.3.0
CommonJSBundledCryptography and hashing
fnv-plus
Javascript FNV-1a Hashing Algorithm up to 1024 bits, with highly optimized 32bit and 52bit implementations.
313.1k+7%-6 years ago
1.3.1
CommonJSNoneCryptography and hashing
base64-arraybuffer-es6
Encode/decode base64 data into ArrayBuffers
296.2k+33%--
3.1.0
ESM + CommonJSBundledCryptography and hashing
crypto-hash
Tiny hashing module that uses the native crypto API in Node.js and the browser
293.9k+4%-9 months ago
4.0.1
ESM onlyBundledCryptography and hashing, DOM and browser utilities
libsodium-sumo
The Sodium cryptographic library compiled to pure JavaScript (raw library, no wrappers, sumo variant)
280.8k+57%-5 months ago
0.8.4
ESM + CommonJSNoneCryptography and hashing
libsodium-wrappers-sumo
The Sodium cryptographic library compiled to pure JavaScript (wrappers, sumo variant)
280.7k+49%-5 months ago
0.8.4
ESM + CommonJSBundledCryptography and hashing
@noble/post-quantum
Auditable & minimal JS implementation of post-quantum cryptography: FIPS 203, 204, 205, Falcon
270.3k---28 days ago
0.7.1
ESM onlyBundledCryptography and hashing
json-stringify-deterministic
Deterministic JSON.stringify with sorted keys for consistent hashes and stable cache keys.
260.4k+35%-1 month ago
1.0.16
CommonJSBundledParsers and serialisers, 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.

  • jsrsasignopensource free pure JavaScript cryptographic library supports RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp and CAdES and JSON Web Signature(JWS)/Token(JWT)/Key(JWK)
  • libsignalOpen Whisper Systems' libsignal for Node.js
  • short-unique-idGenerate random or sequential UUID of any length
  • apache-md5Node.js module for Apache style password encryption using md5.
  • @node-rs/argon2argon2-rust binding for Node.js
  • openpgpOpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.
  • md5-o-maticFast and simple MD5 hashing utility with zero module dependencies. View MD5 Shootout results, http://jsperf.com/md5-shootout/39
  • node-joseA JavaScript implementation of the JSON Object Signing and Encryption (JOSE) for current web browsers and node.js-based servers
  • md5-hexCreate a MD5 hash with hex encoding
  • node-uuidRigorous implementation of RFC4122 (v1 and v4) UUIDs.
  • js-sha512This is a simple SHA-512, SHA-384, SHA-512/224, SHA-512/256 hash functions for JavaScript supports UTF-8 encoding.
  • sha256-uint8arrayFast SHA-256 digest hash based on Uint8Array, pure JavaScript.
  • shortidAmazingly short non-sequential url-friendly unique id generator.
  • ts-md5TypeScript MD5 implementation
  • is-base64Predicate that returns true if base64 string.
  • @node-rs/argon2-linux-x64-gnuargon2-rust binding for Node.js
  • rsa-pem-from-mod-expCreate RSA Public Key PEM from Modulus and Exponent value in node.js
  • secure-keysEncrypt/Decrypt the values of a given object
  • fnv1a-64Tiny, fast, dependency-free 64-bit FNV-1a string hash for Node and the browser
  • cuidCollision-resistant ids optimized for horizontal scaling and performance. For node and browsers.
  • murmurhash3jsA javascript implementation of MurmurHash3's x86 hashing algorithms.(Browser&Server)
  • hash-itHash any object based on its value
  • @aws-crypto/client-nodeThe *client-node* module includes all of the modules you need to use the AWS Encryption SDK for JavaScript with Node.js.
  • webcrypto-shimWeb Cryptography API shim for legacy browsers
  • @hpke/coreA Hybrid Public Key Encryption (HPKE) core module for various JavaScript runtimes
  • @hpke/commonA Hybrid Public Key Encryption (HPKE) internal-use common module for @hpke family modules.
  • @sindresorhus/fnv1aFNV-1a non-cryptographic hash function
  • @node-rs/argon2-linux-x64-muslargon2-rust binding for Node.js
  • ulidxULID generator for NodeJS and the browser
  • uuidv4uuidv4 creates v4 UUIDs.
  • @hpke/chacha20poly1305A Hybrid Public Key Encryption (HPKE) module extension for ChaCha20/Poly1305
  • short-uuidCreate and translate standard UUIDs with shorter formats.
  • hash-stream-validationHash a stream of data, then validate
  • base64-urlBase64 encode, decode, escape and unescape for URL applications
  • react-native-uuidreact-native-uuid is a zero-dependency TypeScript implementation of RFC4122.
  • utilityA collection of useful utilities.
  • hashidsGenerate YouTube-like ids from numbers. Use Hashids when you do not want to expose your database ids to the user.
  • @loaders.gl/cryptoCryptographic/hashing plugins for loaders.gl
  • sha3The Keccak family of hashing algorithms.
  • urlsafe-base64URL Safe Base64 encoding
  • cryptra simple encrypt and decrypt module for node.js
  • rushaA high-performance pure-javascript SHA1 implementation suitable for large binary data.
  • poseidon-liteLightweight poseidon hash
  • fnv-plusJavascript FNV-1a Hashing Algorithm up to 1024 bits, with highly optimized 32bit and 52bit implementations.
  • base64-arraybuffer-es6Encode/decode base64 data into ArrayBuffers
  • crypto-hashTiny hashing module that uses the native crypto API in Node.js and the browser
  • libsodium-sumoThe Sodium cryptographic library compiled to pure JavaScript (raw library, no wrappers, sumo variant)
  • libsodium-wrappers-sumoThe Sodium cryptographic library compiled to pure JavaScript (wrappers, sumo variant)
  • @noble/post-quantumAuditable & minimal JS implementation of post-quantum cryptography: FIPS 203, 204, 205, Falcon
  • json-stringify-deterministicDeterministic JSON.stringify with sorted keys for consistent hashes and stable cache keys.