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
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
57Health
Library Cargo

argon2

A pure-Rust implementation of the Argon2 password hashing function

909
Other
Used by 14
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
67Health
Library PyPI

argon2-cffi

Secure, high-level password hashing for Python using Argon2

731
MIT
Used by 8
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 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
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
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
86Health
Library npm

@node-rs/argon2

Native Rust binding for Argon2 password hashing in Node.js

1,470
MIT
Used by 4
48Health
Library Cargo

aHash

A fast, DOS-resistant, AES-accelerated non-cryptographic hasher purpose-built for in-memory HashMaps

1,347
Apache 2.0
Used by 4
64Health
Library npm

js-md5

A fast, dependency-free MD5 hash function for JavaScript with UTF-8 support

838
MIT
Used by 3
74Health
Library Cargo

TwoX-Hash

A pure Rust implementation of the xxHash and XXH3 non-cryptographic hashing algorithms.

437
MIT
Used by 3
35Health
Library npm

string-hash

A tiny, dependency-free string hashing function for fast, non-cryptographic hash generation in JavaScript.

306
Other
Used by 3
36Health
Library npm

sha.js

A pure JavaScript, streamable implementation of the SHA family of hash functions with a Node-crypto-like API.

298
Other
Used by 3
52Health
Library PyPI

argon2-cffi-bindings

Low-level CFFI bindings that compile the official Argon2 C library for direct use from Python.

20
MIT
Used by 3
83Health
Library npm

PKIjs

A pure TypeScript library implementing the core formats and protocols of public-key infrastructure, built entirely on the WebCrypto API with no native bindings or plug-ins.

1,399
BSD 3
Used by 2
59Health
Library npm

crypto-random-string

Generate cryptographically strong random strings for IDs, slugs, salts, and secrets

592
MIT
Used by 2
56Health
Library PyPI

pwdlib

Modern password hashing for Python with Argon2 and bcrypt and a simple hash and verify API.

177
MIT
Used by 2
31Health
Library Cargo

crc32c

Hardware-accelerated CRC-32C checksums for Rust, with automatic SSE4.2/ARM CRC detection and a pure-software fallback.

56
Other
Used by 2

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