implement SHA1 hasher