MCPcopy
hub / github.com/pyca/cryptography / decrypt_at_time

Method decrypt_at_time

src/cryptography/fernet.py:208–216  ·  view source on GitHub ↗
(
        self, msg: bytes | str, ttl: int, current_time: int
    )

Source from the content-addressed store, hash-verified

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:

Callers 1

test_decrypt_at_timeMethod · 0.95

Calls 1

decrypt_at_timeMethod · 0.45

Tested by 1

test_decrypt_at_timeMethod · 0.76