Skip to content

Inconsistent documentation for argon2 default hash options #974

Open
@choutianxius

Description

@choutianxius

The actual default options for argon2 hash produces

console.log(hash("123456"));
// $argon2id$v=19$m=19456,t=2,p=1$s8PyJzwJrGsbdsRzx4du5g$2lD5nmjRI3zTeUci5GJoAuVMGV9viplQuEHwG3wT14o

Indicating memoryCost = 19 * 2 ** 10, timeCost = 2, instead of what are suggested in docs:

...The default value is 4096, meaning a pool of 4 MiB per thread.

...The default value is 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions