generate sha1 for signature