(
self, msg: bytes | str, ttl: int, current_time: int
)
| 206 | raise InvalidToken |
| 207 | |
| 208 | def decrypt_at_time( |
| 209 | self, msg: bytes | str, ttl: int, current_time: int |
| 210 | ) -> bytes: |
| 211 | for f in self._fernets: |
| 212 | try: |
| 213 | return f.decrypt_at_time(msg, ttl, current_time) |
| 214 | except InvalidToken: |
| 215 | pass |
| 216 | raise InvalidToken |
| 217 | |
| 218 | def extract_timestamp(self, msg: bytes | str) -> int: |
| 219 | for f in self._fernets: |