Hi guys and gals - bit of a random question but I was hoping someone might be able to help me with figuring the format of the argon2id password hash used for penpot?
Here’s what I’ve gathered so far:
Example hash: argon2id$f3a21ee141ce793318abe4e4cd353fef$32768$3$2$5dda3aeace9f141a25391c009ff654575b7ed25e57594d6722867f7334b5a51f
Here’s my understanding for each part:
-
argon2id
: The hashing algorithm used. -
f3a21ee141ce793318abe4e4cd353fef
: This is the salt (in hexadecimal format). 16 bytes -
32768
: The memory cost (m) in KiB. -
3
: The number of iterations (t). -
2
: The parallelism factor (p). -
5dda3aeace9f141a25391c009ff654575b7ed25e57594d6722867f7334b5a51f
: This is the actual hash (in hexadecimal format). 32 bytes -
The version number is not included explicitly.
-
The parameters are separated by $ instead of comma as per the standard format.
Now given all the above, I’ve tried to stitch together the output from the standard argon2id output to get it into the format of the above hash but haven’t had any luck so far. Is there anyone that might be able to help? Happy to be contacted at x.com