(self, encoded)
| 642 | } |
| 643 | |
| 644 | def must_update(self, encoded): |
| 645 | decoded = self.decode(encoded) |
| 646 | return ( |
| 647 | decoded["work_factor"] != self.work_factor |
| 648 | or decoded["block_size"] != self.block_size |
| 649 | or decoded["parallelism"] != self.parallelism |
| 650 | ) |
| 651 | |
| 652 | def harden_runtime(self, password, encoded): |
| 653 | # The runtime for Scrypt is too complicated to implement a sensible |