MCPcopy
hub / github.com/borgbackup/borg / encrypt

Method encrypt

src/borg/crypto/key.py:340–343  ·  view source on GitHub ↗
(self, id, data)

Source from the content-addressed store, hash-verified

338 logically_encrypted = True
339
340 def encrypt(self, id, data):
341 # legacy, this is only used by the tests.
342 next_iv = self.cipher.next_iv()
343 return self.cipher.encrypt(data, header=self.TYPE_STR, iv=next_iv)
344
345 def decrypt(self, id, data):
346 self.assert_type(data[0], id)

Callers

nothing calls this directly

Calls 1

encryptMethod · 0.45

Tested by

no test coverage detected