minor cleanups to sha1 and md5