Closed atomrc closed 1 year ago
Yes, ran into the same issue, you need libsodium-wrappers-sumo since 0.7.11. See: #312 Also check out: https://github.com/jedisct1/libsodium.js/commit/d297e49dd804bfb7c664cd58be1cdf012e0f3aea
Is password hashing supported at all in the non-sumo version? I encounter the same error with crypto_pwhash
. The function is not available.
Edit: #312 explains it.
The README file, too: https://github.com/jedisct1/libsodium.js#standard-vs-sumo-version
FYI: The latest version of @types/libsodium-wrappers 0.7.10 still has the crypto_pwhash symbols, which might confuse some users as it will pass at comepile time and fail at runtime.
Since the upgrade from 0.7.10 to 0.7.11 the
crypto_pwhash_str
function doesn't seem to be exposed anymore.Could there have been a breaking change introduced with 0.7.11?