0

I know that crypt in glibc has ${scheme_token}$ at the start of the hashes in /etc/shadow that can be used to infer the scheme, but dovecot has the actual name of the hashing scheme used included as a prefix to the hash. e.g.

{SHA512-CRYPT}$6$O874ifKnKOTKofd.$dQ5428GEVkN1yHnf4EtXXCIPonyZLLWawME7BI02HqmbbsAsGL308ARM2KIy6Xo7NmWMOEeFoHIgA/kIrtB0h1

{ARGON2I}$argon2i$v=19$m=32768,t=4,p=1$HWFJUaoRxrV4seklZ2k+cw$jedriavwKU/ZH1e1quhM03O4CaMKA40T2+OF7htkJl4

Did any other program do this before dovecot?

4
  • 1
    openldap uses {crypt}$<schem>$salt... which makes sense. Those {SHA512-}, {ARGON2I} look redundant. Commented Nov 4 at 16:03
  • 1
    (looks like that was added around 1998) Commented Nov 4 at 16:13
  • 1
    I believe openLDAP did this sooner also Commented Nov 4 at 18:29
  • Thanks. RFC2307 from 1998-Mar seems to be a good candidate for the origin of this style. Commented Nov 5 at 15:02

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.