def hasher(key): try: key = key.encode() x = hashlib.sha224(key).hexdigest() return(int(str(x),16)) except: return -1