Skip to content

Getting a Type Error #17

@mzfr

Description

@mzfr

When I try to use the -c or -b or -o parameter I am getting a Type Error saying:

➜ xortool encrypted -l 9 -o
Traceback (most recent call last):
  File "/bin/xortool", line 381, in <module>
    main()
  File "/bin/xortool", line 68, in main
    key_char_used) = guess_probable_keys_for_chars(ciphertext, try_chars)
  File "/bin/xortool", line 252, in guess_probable_keys_for_chars
    keys = guess_keys(text, c)
  File "/bin/xortool", line 274, in guess_keys
    key_possible_bytes[offset].append(chr(ord(char) ^ most_char))
TypeError: ord() expected string of length 1, but int found

I have tried to use it like xortool encrypted -l 9 -c 00.
Also tried xortool encrypted -l 9 -c 20 but it all results in the Type error

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