All Projects → crypto-browserify → Sha.js

crypto-browserify / Sha.js

Licence: other
Streamable SHA hashes in pure javascript

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Sha.js

browserify-cipher
No description or website provided.
Stars: ✭ 15 (-93.67%)
Mutual labels:  browserify, crypto
Armadillo
A shared preference implementation for confidential data in Android. Per default uses AES-GCM, BCrypt and HKDF as cryptographic primitives. Uses the concept of device fingerprinting combined with optional user provided passwords and strong password hashes.
Stars: ✭ 226 (-4.64%)
Mutual labels:  crypto
Wycheproof
Project Wycheproof tests crypto libraries against known attacks.
Stars: ✭ 2,299 (+870.04%)
Mutual labels:  crypto
Minipack
📦 A simplified example of a modern module bundler written in JavaScript
Stars: ✭ 2,625 (+1007.59%)
Mutual labels:  browserify
Gmssl
支持国密SM2/SM3/SM4/SM9/ZUC/SSL的OpenSSL分支
Stars: ✭ 2,747 (+1059.07%)
Mutual labels:  crypto
Sphinx Quant
一个基于vnpy,支持多账户,多策略,实盘交易,数据分析,分布式在线回测,风险管理,多交易节点的量化交易系统;支持CTP期货,股票,期权,数字货币等金融产品
Stars: ✭ 217 (-8.44%)
Mutual labels:  crypto
Lk
Simple licensing library for golang.
Stars: ✭ 196 (-17.3%)
Mutual labels:  crypto
Modular Css
A streamlined reinterpretation of CSS Modules via CLI, API, Browserify, Rollup, Webpack, or PostCSS
Stars: ✭ 234 (-1.27%)
Mutual labels:  browserify
Ccxt Rest
Open Source Unified REST API of 100+ Crypto Exchange Sites (18k+ docker pulls) - https://ccxt-rest.io/
Stars: ✭ 210 (-11.39%)
Mutual labels:  crypto
Keywhiz
A system for distributing and managing secrets
Stars: ✭ 2,452 (+934.6%)
Mutual labels:  crypto
Neopg
The multiversal cryptoengine!
Stars: ✭ 213 (-10.13%)
Mutual labels:  crypto
Lua Openssl
Openssl binding for Lua
Stars: ✭ 206 (-13.08%)
Mutual labels:  crypto
Derosuite
DERO: Secure, Anonymous Blockchain with Smart Contracts. Subscribe to Dero announcements by sending mail to [email protected] with subject: subscribe announcements
Stars: ✭ 216 (-8.86%)
Mutual labels:  crypto
Gekko Backtesttool
Batch backtest, import and strategy params optimalization for Gekko Trading Bot. With one command you will run any number of backtests.
Stars: ✭ 203 (-14.35%)
Mutual labels:  crypto
Orion
Usable, easy and safe pure-Rust crypto
Stars: ✭ 227 (-4.22%)
Mutual labels:  crypto
Iov Core
Client library for secure key management and multi-blockchain communication
Stars: ✭ 198 (-16.46%)
Mutual labels:  crypto
Bcrypt
A Java standalone implementation of the bcrypt password hash function. Based on the Blowfish cipher it is the default password hash algorithm for OpenBSD and other systems including some Linux distributions. Includes a CLI Tool.
Stars: ✭ 207 (-12.66%)
Mutual labels:  crypto
Ctf All In One
CTF竞赛权威指南
Stars: ✭ 2,807 (+1084.39%)
Mutual labels:  crypto
Resources
📖 Huge curated collection (archive) of links of Tech, Science, Economics, Politics, Life, Philosophy, Conferences, Videos and much more resources from everyday surfing. ⭐️ Since October 21, 2017.
Stars: ✭ 236 (-0.42%)
Mutual labels:  crypto
Ruby Scripts
A collection of ruby scripts for those who live in the command line
Stars: ✭ 234 (-1.27%)
Mutual labels:  crypto

sha.js

NPM Package Build Status Dependency status

js-standard-style

Node style SHA on pure JavaScript.

var shajs = require('sha.js')

console.log(shajs('sha256').update('42').digest('hex'))
// => 73475cb40a568e8da8a045ced110137e159f890ac4da883b6b17dc651b3a8049
console.log(new shajs.sha256().update('42').digest('hex'))
// => 73475cb40a568e8da8a045ced110137e159f890ac4da883b6b17dc651b3a8049

var sha256stream = shajs('sha256')
sha256stream.end('42')
console.log(sha256stream.read().toString('hex'))
// => 73475cb40a568e8da8a045ced110137e159f890ac4da883b6b17dc651b3a8049

supported hashes

sha.js currently implements:

  • SHA (SHA-0) -- legacy, do not use in new systems
  • SHA-1 -- legacy, do not use in new systems
  • SHA-224
  • SHA-256
  • SHA-384
  • SHA-512

Not an actual stream

Note, this doesn't actually implement a stream, but wrapping this in a stream is trivial. It does update incrementally, so you can hash things larger than RAM, as it uses a constant amount of memory (except when using base64 or utf8 encoding, see code comments).

Acknowledgements

This work is derived from Paul Johnston's A JavaScript implementation of the Secure Hash Algorithm.

LICENSE MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].