We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
hex
1 parent 8d1ecbc commit 7ab41d7Copy full SHA for 7ab41d7
xor_encryptor.py
@@ -26,7 +26,7 @@ def _print_ciphertext(self) -> None:
26
27
wrapper = TextWrapper(width=56, initial_indent="\n")
28
xor_array = ("{ 0x" +
29
- ", 0x".join(hex(ord(x))[2:].zfill(2)
+ ", 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)
0 commit comments