Open solardiz opened 2 months ago
While at it, we could also want to support the {ARGON2}
prefix used by slappw-argon2 - Argon2 password module to slapd
: https://man.archlinux.org/man/core/openldap/slappw-argon2.5.en
Both userPassword LDAP attributes below encode the password 'secret' using different salts:
userPassword: {ARGON2}$argon2i$v=19$m=4096,t=3,p=1$c2FsdHNhbHQ$DKlexoEJUoZTmkAAC3SaMWk30El9/RvVhlqGo6afIng
userPassword: {ARGON2}$argon2i$v=19$m=4096,t=3,p=1$c2FsdHNhbHRzYWx0$qOCkx9nMeFlaGOO4DUmPDgrlUbgMMuO9T1+vQCFuyzw
https://shiro.apache.org/cryptography-features.html uses Argon2id hashes, but encodes them subtly differently. Test vectors from CMIYC 2024 cracks:
were after a
sed
crackable by ourargon2-opencl
like this:We could want to add a
split()
orprepare()
to remove the$shiro2
and putm
andt
in the canonical order. Alternatively, for the latter we could patch upstream Argon2 code not to insist on the order, but then there would be more than one representation of the same hash injohn.pot
, which is undesirable.