diff --git a/main.py b/main.py index bd60fa3..caf2409 100644 --- a/main.py +++ b/main.py @@ -8,6 +8,15 @@ if __name__ == "__main__": if len(message) % 2 != 0: message = "0" + message + swapped = list(message) + for i in range(gen_deg - 1): + if swapped[i] == "0": + swapped[i] = "1" + else: + swapped[i] = "0" + + message = "".join(swapped) + while True: if message[0] == "0":