Packages

Cryptography & Hashing Packages

Cryptographic primitives, hashing, and encryption libraries for securing data at rest and in transit across your application stack.

259 packages

Packages in Cryptography & Hashing

58Health
Library npm

bcrypt.js

A zero-dependency, pure JavaScript implementation of bcrypt for hashing and verifying passwords in Node.js and the browser.

3,797
BSD 3
Used by 51
44Health
Library npm

crypto-js

A JavaScript library of crypto standards - hashing, HMAC, PBKDF2, and symmetric ciphers for Node.js and the browser.

16,409
MIT
Used by 40
48Health
Library npm

bcrypt

Battle-tested password hashing for Node.js using the adaptive bcrypt algorithm.

7,804
MIT
Used by 34
48Health
Library Cargo

hmac

Generic, pure-Rust implementation of Hash-based Message Authentication Code (HMAC)

373
Other
Used by 19
63Health
Library npm

forge

A native, pure-JavaScript implementation of TLS and PKI cryptography for building crypto-based Node.js and browser apps.

5,334
Other
Used by 17
69Health
Library npm

OTPAuth

HOTP and TOTP one-time password library for Node.js, Deno, Bun, and browsers

1,482
MIT
Used by 15
77Health
Library Cargo

curve25519-dalek

Pure-Rust group arithmetic over Curve25519 and Ristretto255

1,193
BSD 3
Used by 15
57Health
Library Cargo

argon2

A pure-Rust implementation of the Argon2 password hashing function

909
Other
Used by 14
84Health
Library Cargo

rust-openssl

Safe, idiomatic Rust bindings to OpenSSL

1,650
Apache 2.0
Used by 10
72Health
Library npm

libsodium-wrappers

WebAssembly build of libsodium with hand-friendly JavaScript wrappers for encryption, signing, hashing, and key exchange.

1,155
Other
Used by 10
81Health
Library npm

noble-hashes

Audited, zero-dependency JS/TS implementation of SHA2, SHA3, BLAKE, HMAC, HKDF, PBKDF2, Scrypt and Argon2 that tree-shakes down to a few kilobytes per hash.

927
MIT
Used by 9
40Health
Library npm

react-native-get-random-values

A native polyfill that implements crypto.getRandomValues() for React Native so libraries like uuid work without modification.

415
MIT
Used by 8
49Health
Library Cargo

hkdf

Pure Rust, no-std implementation of the HMAC-based Extract-and-Expand Key Derivation Function

107
Other
Used by 8
49Health
Library npm

tweetnacl-js

A JavaScript port of the audited TweetNaCl cryptographic library, providing public-key and secret-key encryption, signing, and hashing for Node.js and browsers.

1,923
Other
Used by 7
93Health
Library Composer

phpseclib

Pure-PHP implementations of SSH2, SFTP, X.509, RSA, AES, and dozens of other cryptographic primitives

5,593
MIT
Used by 6
64Health
Library Cargo

ring

Safe, fast, small cryptographic primitives for Rust, built on verified assembly from BoringSSL

4,109
Other
Used by 6
72Health
Library npm

jsrsasign

Pure JavaScript cryptography library for RSA/ECDSA/DSA signing, X.509 certificates, ASN.1, JWS/JWT, and CMS.

3,369
MIT
Used by 6
72Health
Library npm

argon2

Node.js bindings to the reference Argon2 password hashing implementation

2,185
MIT
Used by 6
41Health
Library npm

hash-wasm

Lightning-fast hash and password-derivation functions using hand-tuned WebAssembly binaries

1,159
Used by 6
78Health
Library Cargo

pkcs8

Pure Rust implementation of PKCS#8 private key encoding and decoding

339
Other
Used by 6
39Health
Library Cargo

subtle

Pure-Rust traits and utilities for writing constant-time cryptographic code that resists timing side-channel attacks.

310
BSD 3
Used by 6
40Health
Library npm

JavaScript-MD5

A zero-dependency JavaScript MD5 and HMAC-MD5 hashing implementation that runs identically in Node.js, browsers, and AMD module loaders.

4,556
MIT
Used by 5
45Health
Library npm

speakeasy

A Node.js library for generating and verifying RFC 4226 (HOTP) and RFC 6238 (TOTP) one-time passcodes for two-factor authentication.

2,753
MIT
Used by 5
45Health
Library Cargo

rsa

Pure Rust implementation of RSA encryption, signing, and key handling

673
Apache 2.0
Used by 5

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers