antelle / argon2-browser

Argon2 library compiled for browser runtime
https://antelle.net/argon2-browser
MIT License
383 stars 81 forks source link

How to use WASM version? #51

Closed TomMettam closed 4 years ago

TomMettam commented 4 years ago

Hello!

I'm trying to use the WASM version of argon2-browser in an Angular project.

I've configured the Webpack loader as per https://github.com/antelle/argon2-browser/tree/master/examples/webpack

Everything seems to go fine, except the performance i'm seeing is more in line with the asm.js version and not the WASM version (I'm comparing with the benchmark here: https://caspertech.github.io/crypto-hash-benchmarks.github.io/

Is there anything special I need to do to get it to use the wasm version?

antelle commented 4 years ago

Hi! There’s no asm.js version anymore, the only one is wasm.