(self)
| 116 | return self.key_data |
| 117 | |
| 118 | def test_plaintext(self): |
| 119 | key = PlaintextKey.create(None, None) |
| 120 | chunk = b"foo" |
| 121 | id = key.id_hash(chunk) |
| 122 | assert bin_to_hex(id) == "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae" |
| 123 | assert chunk == key.decrypt(id, key.encrypt(id, chunk)) |
| 124 | |
| 125 | def test_keyfile(self, monkeypatch, keys_dir): |
| 126 | monkeypatch.setenv("BORG_PASSPHRASE", "test") |
nothing calls this directly
no test coverage detected