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

Method encrypt

src/cryptography/fernet.py:180–181  ·  view source on GitHub ↗
(self, msg: bytes)

Source from the content-addressed store, hash-verified

178 self._fernets = fernets
179
180 def encrypt(self, msg: bytes) -> bytes:
181 return self.encrypt_at_time(msg, int(time.time()))
182
183 def encrypt_at_time(self, msg: bytes, current_time: int) -> bytes:
184 return self._fernets[0].encrypt_at_time(msg, current_time)

Callers 4

test_encryptMethod · 0.95
test_rotate_bytesMethod · 0.95
test_rotate_strMethod · 0.95

Calls 1

encrypt_at_timeMethod · 0.95

Tested by 4

test_encryptMethod · 0.76
test_rotate_bytesMethod · 0.76
test_rotate_strMethod · 0.76