Skip to content

Commit 7ab41d7

Browse files
author
winterrdog
committed
capitalize hex numbers
1 parent 8d1ecbc commit 7ab41d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xor_encryptor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _print_ciphertext(self) -> None:
2626

2727
wrapper = TextWrapper(width=56, initial_indent="\n")
2828
xor_array = ("{ 0x" +
29-
", 0x".join(hex(ord(x))[2:].zfill(2)
29+
", 0x".join(hex(ord(x))[2:].zfill(2).upper()
3030
for x in self._ciphertext) + " };")
3131
wrapped_xor_array = wrapper.fill(xor_array)
3232
print(wrapped_xor_array)

0 commit comments

Comments
 (0)