connor4312 / blake3

BLAKE3 hashing for JavaScript: native Node bindings (where available) and WebAssembly
https://connor4312.github.io/blake3/index.html
MIT License
177 stars 19 forks source link

Online demo gives incorrect value #26

Closed Daninet closed 3 years ago

Daninet commented 3 years ago

Hey! Thank you for the nice library!

The online demo at https://connor4312.github.io/blake3/index.html gives incorrect answer for the following text: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 (utf-8)

Gives back: 8bee3200baa9f3a1acd279f049f914f1010e730555ff15109bd59cdd73895e239

Instead of: 8bee3200baa9f3a1acd279f049f914f110e730555ff15109bd59cdd73895e239

It's only broken on the website. The blake3 npm library gives back the correct result when running it from node.