Support crypt(3)-style hash strings for MD5, SHA-256 and SHA-512.