hasher_2.py 129 B

12345
  1. def hash_with_sha1(string):
  2. hash = hashlib.sha1()
  3. string = string.encode('utf-8')
  4. hash.update(string)
  5. return hash