use hashlib for django 1.6+