JsSHA Versions Save

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.

v1.6.3

4 years ago

Changelog for this release:

  • Reduced ECMAScript dependency to v3 (thanks TitusInfo!)

v2.3.1

7 years ago

Changelog for this release:

  • Fix issue with SHA-3 and using a combination of TEXT/UTF-16 input (thanks frostschutz!)

v2.3.0

7 years ago

Changelog for this release:

  • Sped up SHA-3 implementation by adding little-endian capability to conversion functions
  • Further sped up SHA-3 implementation by decomposing xor_64 function (thanks frostschutz!)
  • Fixed incorrect results when using ArrayBuffers (thanks conref!)
  • Added externs/sha.js for Google Closure Compiler users (thanks IvanRF!)

v2.2.0

7 years ago

Changelog for this release:

  • Added support for the SHA-3 family of hashes (SHA3-224, SHA3-256, SHA3-384, SHA3-512, SHAKE128, and SHAKE256)
  • Fixed bug with using ARRAYBUFFER as a HMAC key type
  • Switched testing framework to Mocha and Chai

v2.1.0

8 years ago

Changelog for this release:

  • Added ability to call update on hashes between getHash and getHMAC calls
  • Added new input and output type, "ARRAYBUFFER" which is a JavaScript ArrayBuffer
  • Now keeping smaller build files in NPM (thanks vogievetsky!)
  • Fixed problem with hashing strings over 4 billion bits (thanks Eicar!)

v1.6.2

8 years ago

Changelog for this release:

  • Fixed problem with hashing strings over 4 billion bits (thanks Eicar!)

v2.0.2

8 years ago

Changelog for this release:

  • Fixed inability to have a blank "b64Pad" (thanks xlc!)
  • Added file hashing test (thanks kofalt!)

v1.6.1

8 years ago

Changelog for this release:

  • Fixed issue with SHA-512 family of hashes failing is raw input was a particular size

v2.0.1

8 years ago

Changelog for this release:

  • Fixed major issue with all hashes failing if raw input was a particular size (thanks treus!)

v2.0.0

9 years ago

Changelog for this release:

  • Completely reworked API to support streaming inputs
  • Exceptions now throw Errors instead of strings (thanks jclem!)