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

aes-gcm

Pure Rust AES-GCM authenticated encryption with optional hardware acceleration

964
Other
Used by 20
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
70Health
Library npm

js-sha256

A fast, zero-dependency SHA-256/SHA-224 hashing library for JavaScript with built-in UTF-8 support and HMAC.

974
MIT
Used by 11
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
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
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
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
96Health
SDK Go

Vault API

The official Go client library for HashiCorp Vault, providing typed access to secrets, auth methods, and system endpoints.

36,312
MPL-2.0
Used by 4
86Health
Library npm

@node-rs/argon2

Native Rust binding for Argon2 password hashing in Node.js

1,470
MIT
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
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
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
60Health
Library npm

@aparajita/capacitor-secure-storage

Encrypted key-value storage for Capacitor apps, backed by the iOS Keychain and Android Keystore.

169
MIT
Used by 2
49Health
Library PyPI

python-gnupg

A Python API for GnuPG — generate keys, encrypt, decrypt, sign, and verify data from your code.

143
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