hasher_4.py 133 B

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