#10: Adding missing method docs
This commit is contained in:
@@ -93,7 +93,15 @@ def shift_char(char, incrementation: int = 1):
|
||||
return str(new_char_in_bytes)[2]
|
||||
|
||||
|
||||
def xor_two_lists(clear_list, key_list):
|
||||
def xor_two_lists(clear_list: [int], key_list: [int]) -> [int]:
|
||||
"""
|
||||
XORs every element of the first given list with the corresponding element of the 2nd list.
|
||||
If the 2nd list is shorter than the first one, the XORing starts at the first element of the
|
||||
2nd list again once all elements have been used and so on.
|
||||
:param clear_list: The first list
|
||||
:param key_list: The second list. This list may be shorter or longer than the first one, doesn't matter
|
||||
:return: A list containing the XORed elements.
|
||||
"""
|
||||
xored_list = []
|
||||
|
||||
for x in range(len(clear_list)):
|
||||
|
||||
Reference in New Issue
Block a user