<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rehash(self, password):
 """Recreates the internal hash."""

        self.hash = self._new(password, self.desired_rounds)
        self.rounds = self.desired_rounds