(self, password, salt)
| 256 | ) |
| 257 | |
| 258 | def _check_encode_args(self, password, salt): |
| 259 | if password is None: |
| 260 | raise TypeError("password must be provided.") |
| 261 | if not salt or "$" in force_str(salt): # salt can be str or bytes. |
| 262 | raise ValueError("salt must be provided and cannot contain $.") |
| 263 | |
| 264 | def encode(self, password, salt): |
| 265 | """ |