Allow sha1-encrypted passwords on Basic auth

Simply encrypt the password using sha1 and set it as password in the
authentication file. Unencrypted passwords are still supported.