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
48Health
Library npm

bcrypt

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

7,804
MIT
Used by 34
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
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
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
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
64Health
Library npm

js-md5

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

838
MIT
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
68Health
Library Cargo

totp-rs

RFC 6238-compliant TOTP two-factor authentication for Rust

273
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
46Health
Library Cargo

openidconnect-rs

A strongly-typed, extensible Rust implementation of the OpenID Connect protocol for building relying-party authentication and OIDC provider integrations.

643
MIT
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
58Health
Library npm

totp-generator

Generate TOTP one-time passcodes from a secret key using the native Web Crypto API, with a pure-JS fallback.

314
MIT
Used by 2
54Health
Library npm

hawk

JavaScript implementation of the Hawk HTTP holder-of-key authentication scheme

1,938
BSD 3
Used by 1
56Health
Library Cargo

webauthn-rs

A Rust implementation of the WebAuthn Relying Party protocol for passkey and passwordless authentication.

709
MPL-2.0
Used by 1
50Health
Library Cargo

opaque-ke

Rust implementation of the OPAQUE augmented password-authenticated key exchange protocol

421
Other
Used by 1
81Health
Library npm

ASN1.js

A pure JavaScript/TypeScript library for encoding and decoding ASN.1 BER/DER data, the foundation of X.509 certificates and PKI.

300
BSD 3
Used by 1
37Health
Library npm

xxhashjs

Pure JavaScript implementation of the xxHash algorithm, delivering fast 32-bit and 64-bit non-cryptographic hashing.

298
MIT
Used by 1
74Health
Library Cargo

jwt-simple

A fast, safe-by-default Rust library for creating and verifying JWT and JWE tokens across every major signing and encryption algorithm.

282
Other
Used by 1
64Health
Library Cargo

Biscuit-Auth

Rust implementation of Biscuit — a decentralized authorization token with offline attenuation and a Datalog policy language.

251
Apache 2.0
Used by 1

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