moved hashing to hashlib