Skip to content

Implement browser-compatible hashing algorithms

Benjamin Herman requested to merge feature/browser-hasing into main
  • Implement browser-compatible pure-JavaScript BLAKE2b helper
    • Remove inline WebAssembly implementation
    • Synchronous execution
    • Should work on all hardware regardless of endianness. (untested)
    • Uses BigUint64Array and bigint DataView access. Will not work in Safari until later this year. Needs to be polyfilled in the meantime.
  • Implement browser-compatible pure-JavaScript SHA-256 helper
    • Synchronous execution
    • Should work on all hardware regardless of endianness. (untested)
  • Move standalone blake2b convenience function to Blake2b.digest static method.

Merge request reports