You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
argon2.verify({// <CODE ELIDED>})// result.then(res=>{res.hash// hash as Uint8Arrayres.hashHex// hash as hex-stringres.encoded// encoded hash, as required by argon2})// or error.catch(err=>{err.message// error message as string, if availableerr.code// numeric error code})
Which is desirable! I need res.hash after a successful verification. But, meanwhile, back in argon2.js:
.. returning undefined in the case of success. And indeed argon2_library.c indicates we can only receive a status code and not the various hash values:
SO, the res data structure containing encoded, hash, hashHex needs to be re-written out of the README.md sample .then() clause , perhaps like this:
argon2.verify({// <CODE ELIDED>})// successthen(()=>console.log("success!"))// or error.catch(err=>{err.message// error message as string, if availableerr.code// numeric error code})
The text was updated successfully, but these errors were encountered:
README.md
says:Which is desirable! I need
res.hash
after a successful verification. But, meanwhile, back inargon2.js
:.. returning
undefined
in the case of success. And indeedargon2_library.c
indicates we can only receive a status code and not the various hash values:SO, the
res
data structure containingencoded
,hash
,hashHex
needs to be re-written out of theREADME.md
sample.then()
clause , perhaps like this:The text was updated successfully, but these errors were encountered: