jedisct1 / libsodium.js

libsodium compiled to Webassembly and pure JavaScript, with convenient wrappers.
Other
968 stars 138 forks source link

Undefined constants in libsodium-wrappers #318

Closed WardPearce closed 1 year ago

WardPearce commented 1 year ago

Greetings, Recently when using sodium.crypto_pwhash_SALTBYTES i started getting the error length cannot be null or undefined. Looking at the constant, it appears to not actually be loaded. Most likely a error on my behalf but very confused by it.

Relevant source code https://github.com/WardPearce/canarystat.us/blob/main/frontend/src/routes/Login.svelte#L55