Skip to content

Argon2id 8x slower than commandline tool #133

@webmaster128

Description

@webmaster128

The command line tool argon2 from phc-winner-argon2 performs the following hashing in ~0.8 seconds on a 64 bit Linux (Intel).

$ echo -n "abc" | ./argon2 XXXXXXXXXXXXXXXX -id -t 20 -k 65536 -l 32
Type:		Argon2id
Iterations:	20
Memory:		65536 KiB
Parallelism:	1
Hash:		47dcb93ccefb9523efa3df127f0f5d922ee9234ea31665656278daff2e421d3f
Encoded:	$argon2id$v=19$m=65536,t=20,p=1$WFhYWFhYWFhYWFhYWFhYWA$R9y5PM77lSPvo98Sfw9dki7pI06jFmVlYnja/y5CHT8
0.799 seconds
Verification ok

The same call (parameters verified by comparing hash result) takes 6.8 seconds in Chromium. Is this and expected performance? Is there a way to see if wasm implementation is used?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions