dirist_14.py 129 B

12345678
  1. def hasher(key):
  2. try:
  3. key = key.encode()
  4. x = hashlib.sha224(key).hexdigest()
  5. return(int(str(x),16))
  6. except:
  7. return -1