openpgpjs / argon2id

Argon2id (RFC 9106) implementation in JS & WebAssembly, optimised for both performance and bundle size
MIT License
21 stars 3 forks source link

tagLength #2

Closed OfficialCRUGG closed 8 months ago

OfficialCRUGG commented 1 year ago

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

malobre commented 10 months ago

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.