use hashlib instead of the deprecated django module