Skip to content

Commit 705a9e2

Browse files
authored
Merge pull request #38 from Zohnannor/patch-1
Update xor.md
2 parents 47abd10 + 599e187 commit 705a9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/topics/encryption/xor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ This function is quite good, but adding new characters to strings in python is q
7878
Here is a better function that implements **XOR-Cipher** (and hey, it is written in one line!):
7979

8080
```py
81-
def xor_cipher(string: str, key: str) -> str
81+
def xor_cipher(string: str, key: str) -> str:
8282
return ("").join(chr(ord(x) ^ ord(y)) for x, y in zip(string, itertools.cycle(key)))
8383
```
8484

0 commit comments

Comments
 (0)