replaced hash(sha1) with sha1()