Closed MichaelJCole closed 10 months ago
Looks like crypto_pwhash_*
is only is the sumo version.
@jedisct1 Aha! Got it.
I'm looking for an isomorphic Argon2 implementation so node and browser can hash to the same id.
libsodium-wrapper looks promising, but I got the impression the sumo version was experimental, unstable, and/or included dangerous stuff.
Is there a specific reason Argon2 isn't in the regular version?
Thank you
sumo
is exactly the same as the regular version, with additional functions included.
The password hashing functions require a lot of memory that has to be preallocated. So, if you're not using them, this is a waste of memory. This is why they are not in the regular version.
@jedisct1 Got it, thank you
Here's a git repo to reproduce: https://github.com/MichaelJCole/libsodium-issue
It's undefined when I'm using it in my typescript project:
outputs:
Typescript will autocomplete the property name, but the value doesn't appear to be assigned in the libsodium repo:
https://github.com/search?q=repo%3Ajedisct1%2Flibsodium.js+crypto_pwhash_SALTBYTES&type=code
These constants are also undefined, am I missing something? Thank you!
Here are the versions I'm using:
I can't install matching versions of the types and lib: