(self, password, salt)
| 663 | algorithm = "md5" |
| 664 | |
| 665 | def encode(self, password, salt): |
| 666 | self._check_encode_args(password, salt) |
| 667 | password = force_str(password) |
| 668 | salt = force_str(salt) |
| 669 | hash = hashlib.md5((salt + password).encode()).hexdigest() |
| 670 | return "%s$%s$%s" % (self.algorithm, salt, hash) |
| 671 | |
| 672 | def decode(self, encoded): |
| 673 | algorithm, salt, hash = encoded.split("$", 2) |
no test coverage detected