Hi,
I’m trying to use blake2b hash algorithm from https://github.com/dcposch/blakejs in my fuse project. The library is pure javascript implementation with no dependency on browser function. But the thing is, when I run the function on fuse, the result is different compared to when executed on browser or nodejs (or other library in different language with same algorithm).
for example, the 32byte hash of word “test” on blake2b algorithm should output
kosgNmlD4q/RHrwOri5TqTvxd6T881vMZNUDcE5l4gI=
, while in fuse, the result is
Pz8gNmlDPz8/Hj8OPy5TPzs/dz8/P1s/ZD8DcE5lPwI=
The library (blake2js) said that blake2b is 64bit algorithm, and it use some workaround to work with javascript runtime. I have tried running this code in browser (chrome), nodejs, and iOS browser and the result is consistent with any other blake2b implementation. And I have tried to run fuse app with same algorithm in OSX preview and iOS preview and it has wrong result.
I assume that fuse using same V8 engine on preview and android and same javascript engine on iOS safari, but I don’t understand why the result is different while the library has no requirement for browser functionality. Is there any change in fuse that affecting this behaviour?