10 Best Node.js Cryptography Libraries

Curated by the Openbase team and community.Learn more

Curated by the Openbase team and community. Learn more

node-forge

A native implementation of TLS in Javascript and tools to write crypto-based and network-heavy webapps

License Icon
License: (BSD-3-Clause OR GPL-2.0)
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
2
Top Feedback
1Performant
GitHub Stars
4K
Weekly Downloads
13M
Last Commit
15d ago
Bundle Size (min+gzip)
73.6KB
Not Tree-Shakeable

crypto-js

JavaScript library of crypto standards.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.8/ 5
14
Top Feedback
6Great Documentation
6Easy to Use
1Performant
GitHub Stars
12K
Weekly Downloads
3M
Last Commit
1mo ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
ell

elliptic

Fast Elliptic Curve Cryptography in plain javascript

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
13M
Last Commit
9mos ago
Bundle Size (min+gzip)
46.4KB
Not Tree-Shakeable
jsr

jsrsasign

The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES JSON Web Signature/Token in pure JavaScript.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.0/ 5
2
Top Feedback
1Great Documentation
1Hard to Use
GitHub Stars
3K
Weekly Downloads
196K
Last Commit
1mo ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

crypto-browserify

partial implementation of node's `crypto` for the browser

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
500
Weekly Downloads
12M
Last Commit
4yrs ago
Bundle Size (min+gzip)
155.4KB
Not Tree-Shakeable

jwk-to-pem

Convert a json web key to a PEM for use by OpenSSL or crytpo

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
127
Weekly Downloads
402K
Last Commit
7mos ago
Bundle Size (min+gzip)
55.6KB
Not Tree-Shakeable
jsh

jshashes

Fast and dependency-free cryptographic hashing library for node.js and browsers (supports MD5, SHA1, SHA256, SHA512, RIPEMD, HMAC)

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
1Great Documentation
1Easy to Use
1Performant
GitHub Stars
656
Weekly Downloads
21K
Last Commit
4mos ago
Bundle Size (min+gzip)
8.37KB
Not Tree-Shakeable

eccrypto

JavaScript Elliptic curve cryptography library

License Icon
License: CC0-1.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
222
Weekly Downloads
9K
Last Commit
7mos ago
Bundle Size (min+gzip)
47.6KB
Not Tree-Shakeable
rnc

react-native-crypto

THIS REPOSITORY HAS MOVED. ITS NEW LOCATION IS HERE: https://github.com/tradle/react-native-crypto

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
17
Weekly Downloads
13K
Last Commit
4yrs ago
Bundle Size (min+gzip)
154.9KB
Not Tree-Shakeable
scj

simple-crypto-js

Simplified AES cryptography for safer and easier encryption and decryption processes of any JavaScript objects.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
75
Weekly Downloads
8K
Last Commit
1yr ago
Bundle Size (min+gzip)
17.4KB
Not Tree-Shakeable
cry

cryptojs

Following googlecode project crypto-js, provide standard and secure cryptographic algorithms for NodeJS. Support MD5, SHA-1, SHA-256, RC4, Rabbit, AES, DES, PBKDF2, HMAC, OFB, CFB, CTR, CBC, Base64

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
309
Weekly Downloads
2K
Last Commit
9yrs ago
Bundle Size (min+gzip)
11.4KB
Not Tree-Shakeable

bitauth

Authenticate with web services utilizing the same strategy as Bitcoin.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
471
Weekly Downloads
229
Last Commit
7mos ago
Bundle Size (min+gzip)
69.5KB
Not Tree-Shakeable
cry

cryptex

Secure secret storage and cryptographic key retrieval for Node.js

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
138
Weekly Downloads
646
Last Commit
2yrs ago
Bundle Size (min+gzip)
25.7KB
Not Tree-Shakeable

eosjs-crypt

Elliptic curve cryptography functions: Private Key, Public Key, Signature, AES, Encryption, Decryption

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
263
Weekly Downloads
1
Last Commit
2yrs ago
Bundle Size (min+gzip)
49.1KB
Not Tree-Shakeable