(self)
| 16 | self._plaintext = b"" |
| 17 | |
| 18 | def _xor_crypt(self) -> None: |
| 19 | i = 0 |
| 20 | for char in self._plaintext: |
| 21 | self._ciphertext += chr(char ^ ord(self.key[i % self._key_length])) |
| 22 | i += 1 |
| 23 | |
| 24 | def _print_ciphertext(self) -> None: |
| 25 | from textwrap import TextWrapper |