It was obviously a joke. Re-read. Have a nice day.
Anyone here with a Mac willing to help me test a multithreaded build of the argon2 webassembly library?
I have a newly compiled versions of the argon2-browser WebAssembly library with multithreading support (up to parallelism = 16). It works well on Firefox and Chrome, but I don’t have a mac to test Safari on. The SIMD versions won’t work (not implemented in Safari yet, might come with 16.4?), but the multithreaded, non-simd version should. https://argon2-browser.quexten.com/
Let me know if you click on “Run WebAssembly Threaded” whether it outputs a hash or an error.
Looks broken here on win11 with FF and edge
[00.000] Testing Argon2 using Binaryen native-wasm
[00.000] Calculating hash…
[00.011] Params: pass=d4fa4av3vtcdsfgaegagf#$%@$ERGQ@#%@C#$@CF#$, salt=somesalt, time=12, mem=1024, hashLen=32, parallelism=12, type=2
[00.021] Encoded: $argon2id$v=19$m=1024,t=12,p=12$c29tZXNhbHQ$+kpeslWlN4OGkfpNCuJpil9Dnwmf4Bllog9Au3sEXrc
[00.021] Hash: fa4a5eb255a537838691fa4d0ae2698a5f439f099fe01965a20f40bb7b045eb7
[00.021] Elapsed: 11ms
[00.021] To load another argon2 implementation, please refresh the page first!!
What looks broken about it? The hash seems correct?
[00.021] Hash: fa4a5eb255a537838691fa4d0ae2698a5f439f099fe01965a20f40bb7b045eb7
11ms is unreasonably fast. Keypass says 1.634 seconds on the same PC with the same settings.
Ah, maybe it was unclear, on the website the memory is in KiB, with your settings you have 1 MiB of memory. If you want 1GiB then enter 1048576.
Ah, of course… I think the old version had a drop down box to select between bits and… Anyway.
[00.935] Params: pass=sdfgwetvw3g$%^G#%$TYVWEWE%, salt=somesalt, time=10, mem=1048576, hashLen=32, parallelism=12, type=2
[00.938] Blocking on the main thread is very dangerous, see Pthreads support — Emscripten 3.1.74-git (dev) documentation
[02.547] Encoded: $argon2id$v=19$m=1048576,t=10,p=12$c29tZXNhbHQ$dZB4elH68FOC5vOJJFxBm7NeFQm7Z+/IxKWdduR62QU
[02.547] Hash: 7590787a51faf05382e6f389245c419bb35e1509bb67efc8c4a59d76e47ad905
[02.547] Elapsed: 1612ms
[02.547] To load another argon2 implementation, please refresh the page first!!
0.220ms slower than KeePass with iterations adjusted to 10.
Thank you for testing! That means the multithreaded version works on Safari too. This version does not properly unload the currently loaded implementation, so if you don’t reload the page, it keeps using the first one you clicked on. On a freshly reloaded page, the SIMD buttons should only work from Safari 16.4, which still seems to be in beta.