Skip to content

Error #1

@JeanZ7

Description

@JeanZ7

Thank you for your work. I am struggling to solve 6.1 and tried your code and found:
(can you provide the outcome instead?)

UnicodeDecodeError Traceback (most recent call last)
in ()
15
16
---> 17 main()

ipython-input-11-54a020cf378d in main()
9 # Compute and print the result of the attack
10 result = break_repeating_key_xor(data)
---> 11 print("Key =", result[1].decode())
12 print("---------------------------------------")
13 print(result[0].decode().rstrip())

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions