use hashlib instead depricated hashcompat