added an ad-hoc wrapper for sha1