# Caligatio/jsSHA

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.

Repository: https://github.com/Caligatio/jsSHA
Canonical: https://ross.abutalabs.com/products/jssha
Homepage: https://caligatio.github.io/jsSHA/
Language: TypeScript
License: BSD-3-Clause
License Family: permissive
Topics: sha, sha-1, sha-2, sha-3, sha-224, sha-256, sha-384, sha-512, sha3-224, sha3-256, sha3-384, sha3-512, hmac, javascript, hash, typescript, kmac, shake, cshake, cryptography
Last push: 2026-08-26T05:27:06+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 58, longevity 100
- inputs: {"age_days": 5156, "days_push": 7, "days_rel": 68, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2263, forks 383 (observed 2026-08-28T04:06:31.967238+00:00)

## What it is
jsSHA is a pure TypeScript/JavaScript library implementing the complete SHA hash family (SHA-1, SHA-2, SHA-3, SHAKE, cSHAKE, KMAC) plus HMAC, with streaming update support. It runs in browsers, Node.js, and Deno with no native dependencies.

## Use cases
- compute sha-256 hash of a string in the browser
- generate HMAC signatures in JavaScript
- hash files incrementally with streaming updates
- calculate SHA3 or KMAC hashes in Node.js
- hash passwords or tokens client-side without native crypto
- use SHA hashing in Deno or TypeScript projects

## When to choose
- you need the full SHA family including SHA-3, SHAKE, cSHAKE, or KMAC in JavaScript
- you need a dependency-free, cross-browser and Node-compatible hashing library
- you need streaming/incremental hashing or HMAC support

## When to avoid
- you only need basic hashes and can rely on the built-in Web Crypto API or Node crypto module
- you need password hashing algorithms like bcrypt or Argon2
- you need high-performance native-speed hashing for large data volumes

## Facets
- artifact type: library
- maturity: stable
- function: cryptography, security, sdk
- domain: security, developer-tools, web-development
- platform: browser, cross-platform
- tags: sha, sha3, hmac, shake, cshake, kmac, hashing, typescript, pure-javascript, cryptography, nodejs, deno, javascript

## Member repositories
- Caligatio/jsSHA (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:31.967238+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:42:27.596830+00:00, confidence not recorded.
  - readme: https://github.com/Caligatio/jsSHA (fetched 2026-08-28T04:06:31.967238+00:00, sha 7d7a12cb2842)
  - homepage: https://caligatio.github.io/jsSHA/ (fetched 2026-08-29T10:23:12.458045+00:00, sha 2a519064b46c)
  - registry_npm: https://registry.npmjs.org/jssha (fetched 2026-08-29T10:23:12.460378+00:00, sha ff4e457027c3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
