openpgpjs / argon2id

Argon2id (RFC 9106) implementation in JS & WebAssembly, optimised for both performance and bundle size

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tagLength

OfficialCRUGG opened this issue · comments

Why do I need to specify a tagLength to generate a hash? What do I put there? This is not in the usage guide...

The tagLength is the size of the hash output in bytes, the recommended default in the argon2 spec (section 9, bullet point 6) is 32.

Edit: The spec actually recommends 128 bits (16 bytes) as a default, their CLI defaults to 32 bytes.