jedisct1 / libsodium.js

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

TypeError: Cannot read properties of undefined (reading 'href') #323

Open vawogbemi opened 1 year ago

vawogbemi commented 1 year ago

getting this error when I'm running _sodium.ready in a cloudflare worker

vawogbemi commented 1 year ago

ended up fixing it through #212, but now I'm getting this

image
vawogbemi commented 1 year ago

@jedisct1 Hey is there any chance you have a definition of crypto_pwhash i can copy paste? Or is there another library that has a similar function.

jedisct1 commented 1 year ago

Are you using the sumo version? Are other functions accessible?

If this is too complicated, you can simply use the WebCrypto API: https://bradyjoslin.com/blog/encryption-webcrypto/

vawogbemi commented 1 year ago

yeah im using sumo, cloudflare workers download the package directly and paste the code in the cloud env, so that may be why

vawogbemi commented 1 year ago

the other functions are working though