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
The below code works fine for creating the hash, with changing the encodedSecret resulting in a different hash
constenc=newTextEncoder()constencodedSecret=enc.encode(secret)returnargon2.hash({pass: inputPassword,salt: inputSalttime: 1,// the number of iterationsmem: 128000,// used memory, in KiBhashLen: 32,// desired hash lengthparallelism: 1,// desired parallelism (will be computed in parallel only for PNaCl)secret: encodedSecret,// optional secret datatype: argon2.ArgonType.Argon2id,// or argon2.ArgonType.Argon2i or argon2.ArgonType.Argon2id})
I can not seem to verify with a secret though and cant find examples.
Seems if I remove the secret from the hash function the verify will work even with the secret argument set which leads me to believe secret is either not implemented or called something other than secret in the verify function.
The text was updated successfully, but these errors were encountered:
How do I go about using the optional secret data?
The below code works fine for creating the hash, with changing the encodedSecret resulting in a different hash
I can not seem to verify with a secret though and cant find examples.
Seems if I remove the secret from the hash function the verify will work even with the secret argument set which leads me to believe secret is either not implemented or called something other than secret in the verify function.
The text was updated successfully, but these errors were encountered: