(self)
| 22 | i += 1 |
| 23 | |
| 24 | def _print_ciphertext(self) -> None: |
| 25 | from textwrap import TextWrapper |
| 26 | |
| 27 | wrapper = TextWrapper(width=56, initial_indent="\n") |
| 28 | xor_array = ("{ 0x" + |
| 29 | ", 0x".join(hex(ord(x))[2:].zfill(2).upper() |
| 30 | for x in self._ciphertext) + " };") |
| 31 | wrapped_xor_array = wrapper.fill(xor_array) |
| 32 | print(wrapped_xor_array) |
| 33 | |
| 34 | def run(self) -> None: |
| 35 | try: |