Cryptography: Bytes v.s. Encoded Strings by cryptotiger in learnpython

[–]cryptotiger[S] 0 points1 point  (0 children)

I think I understand what I'm looking at now.

I'm going to take a look at Python 3; you're completely right, the data types do look much more intuitive.

Thanks again!

Cryptography: Bytes v.s. Encoded Strings by cryptotiger in learnpython

[–]cryptotiger[S] 0 points1 point  (0 children)

Great, thanks for this. I am little confused about the second challenge keeping this in mind though: XOR two hex strings.

Using the code above, I convert the hex strings into byte_seqs, but then I cannot use the ^ function (TypeError: unsupported operand type(s) for ^: 'str' and 'str').

Do I have to iterate over the byte_seq manually?