use hashlib instead of the deprecated django module

Good for django 1.6