Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Jssha | 2,190 | 1,657 | 522 | 2 months ago | 22 | August 04, 2023 | 2 | bsd-3-clause | TypeScript | |
A JavaScript/TypeScript implementation of the complete Secure Hash Standard (SHA) family (SHA-1, SHA-224/256/384/512, SHA3-224/256/384/512, SHAKE128/256, cSHAKE128/256, and KMAC128/256) with HMAC. | ||||||||||
Node Argon2 | 1,673 | 273 | 290 | 21 days ago | 69 | September 01, 2023 | 19 | mit | JavaScript | |
Node.js bindings for Argon2 hashing algorithm | ||||||||||
Libchaos | 1,628 | 4 years ago | 1 | February 27, 2018 | 3 | other | C++ | |||
Advanced library for randomization, hashing and statistical analysis (devoted to chaos machines). :microscope: | ||||||||||
Cryptopasta | 1,509 | 123 | 118 | 5 years ago | July 12, 2023 | 11 | other | Go | ||
copy & paste-friendly golang crypto | ||||||||||
Low Latency Android Ios Linux Windows Tvos Macos Interactive Audio Platform | 1,286 | a month ago | 1 | C++ | ||||||
🇸Superpowered Audio, Networking and Cryptographics SDKs. High performance and cross platform on Android, iOS, macOS, tvOS, Linux, Windows and modern web browsers. | ||||||||||
Pynacl | 984 | 1,969 | 610 | 25 days ago | 16 | January 07, 2022 | 44 | apache-2.0 | C | |
Python binding to the Networking and Cryptography (NaCl) library | ||||||||||
Crypto Hash | 575 | 18 | 28 | a year ago | 9 | December 02, 2021 | 3 | mit | JavaScript | |
Tiny hashing module that uses the native crypto API in Node.js and the browser | ||||||||||
Swift Sodium | 492 | 21 | 18 days ago | 10 | December 12, 2020 | 10 | isc | C | ||
Safe and easy to use crypto for iOS and macOS | ||||||||||
Noble Hashes | 351 | 172 | 5 days ago | 23 | December 15, 2022 | 2 | mit | JavaScript | ||
Audited & minimal JS implementation of hash functions, MACs & KDFs. | ||||||||||
Password4j | 292 | 14 days ago | 17 | December 08, 2022 | 5 | apache-2.0 | Java | |||
Java cryptographic library that supports Argon2, bcrypt, scrypt and PBKDF2 aimed to protect passwords in databases. Easy to use by design, highly customizable, secure and portable. All the implementations follow the standards and have been reviewed to perform better in the JVM. |
Tiny hashing module that uses the native crypto API in Node.js and the browser
Useful when you want the same hashing API in all environments. My cat calls it isomorphic.
In Node.js it uses require('crypto')
, while in the browser it uses window.crypto
.
The browser version is only ~300 bytes minified & gzipped.
When used in the browser, it must be in a secure context (HTTPS).
This package is for modern browsers. IE11 is not supported.
npm install crypto-hash
import {sha256} from 'crypto-hash';
console.log(await sha256(''));
//=> '36bf255468003165652fe978eaaa8898e191664028475f83f506dabd95298efc'
Returns a Promise<string>
with a Hex-encoded hash.
In Node.js, the operation is executed using worker_threads
. A thread is lazily spawned on the first operation and lives until the end of the program execution. It's unref
ed, so it won't keep the process alive.
SHA-1 is insecure and should not be used for anything sensitive.
Type: string
ArrayBuffer
ArrayBufferView
Type: object
Type: string
Values: 'hex' | 'buffer'
Default: 'hex'
Setting this to buffer
makes it return an ArrayBuffer
instead of a string
.