auth/htpasswd: add support for salted sha1 passwords

This patch adds support for salted sha1 passwords.