Skip to content

Refactor SEDUX#1

Open
DraumVisker wants to merge 2 commits intoMaxEdison:masterfrom
DraumVisker:master
Open

Refactor SEDUX#1
DraumVisker wants to merge 2 commits intoMaxEdison:masterfrom
DraumVisker:master

Conversation

@DraumVisker
Copy link

No description provided.

@DraumVisker
Copy link
Author

Refactoring SEDUX

@DraumVisker DraumVisker reopened this Feb 24, 2024
Copy link
Owner

@MaxEdison MaxEdison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Pixy, thanks for your attention.
There is an issue in your commit which causes error while Decryption. Here's the error message:

d
Decrypted Message:
Traceback (most recent call last):
  File "test.py", line 57, in <module>
    print(decrypt(message, key))
          ^^^^^^^^^^^^^^^^^^^^^
  File "test.py", line 39, in decrypt
    decrypted_byte = xor_bytes(byte, key_binary[i % key_len])
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "test.py", line 16, in xor_bytes
    return format(binary_to_int(byte1) ^ binary_to_int(byte2), '08b')
                  ^^^^^^^^^^^^^^^^^^^^
  File "test.py", line 11, in binary_to_int
    return int(binary, 2)
           ^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 2: '4'```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments