-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory cost is too small #97
Comments
I guess it’s the limitation of webassembly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
java code the memory set memory 12, I use the some code i web, It tell me memory cost is too small, now we can not change the momory the big, how can I fix the propblem?hehe is code,
export async function argonEncrypt(value) {
const keyData = new TextEncoder().encode(key)
const res= await argon2.hash({
pass: value,
salt: value,
time: 20,
mem: 12,
type: argon2.ArgonType.Argon2id,
hashLen:32,
parallelism: 2
})
return Base64.fromUint8Array(res.hash)
}
The text was updated successfully, but these errors were encountered: