add sha1_passwd parser function

the sha1_passwd converts a string to a base64 encoded sha1 digest suitable for Apache SHA1 htpasswd files