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.

BSD-3-CLAUSE License

Downloads
3.5M
Stars
2.2K
Committers
15

Bot releases are hidden (Show)

jsSHA - Release version 1.6.0

Published by Caligatio over 9 years ago

This marks the last v1.X new feature release. The API is changing significantly with upcoming v2.0 to support streaming and it will be too difficult to support the older API style with new features.

Changelog for this release:

  • Added a BYTES input and output format that is a raw byte string
  • Fixed broken AMD support (thanks drewcovi!)
  • Fixed broken UTF-8 parsing on non-BMP Unicode characters
  • Changed array references to remove warnings on Icedove
  • Replaced "UTF16" encoding with "UTF16BE" (big endian) and "UTF16LE" (little endian) to remove confusion
jsSHA - Release version 1.5.0

Published by Caligatio almost 11 years ago

Changelog for this release:

  • Added optional numRounds argument to getHash
    • Note: this necessitated removing the hash result caching functionality
  • Reduced file size by optimizing internal constants
  • Removed charSize input and replaced with encoding to handle Unicode. NOTE: Only Code points up to 0xFFFF are supported.
    • charSize = 16 is effectively replaced by encoding = "UTF16"
    • charSize = 8 was wrong in terms of handling UTF-8 and has been replaced by encoding = "UTF8"
  • Changed method of referencing "window" to be compatible with WebWorkers, Node.js, and AMD (thanks piranna!)