In
httpauth.c [github.com]'s find_algorithm_and_salt() I think I read that it is presumed that the format of a crypt() hash is "$id$salt$hash".
This is a relevant forum thread:
http://www.hiawatha-webserver.org/forum/topic/1298However, the crypt() hash format can be more complicated, since you can add parameters to the string as well.
I had a string like "$id$rounds=1000$salt$hash" string which failed to authenticate me until I removed the rounds=1000$ part.
I'll point to the glibc source where you can see the test-strings since I cannot find a reasonable manpage:
here:
https://github.com/lattera/glibc/blob/master/crypt/sha512c-test.cand here:
https://github.com/lattera/glibc/blob/master/crypt/sha256-crypt.cHiawatha version:
Operating System: