-2

I was looking at this exercise and it was mentioned that the string \x1AL\xD23k\xCA\x1D\xD7 consists of 8 bytes. However, I fail to see how there are 8 bytes in the string. Shouldn't there be 7 bytes instead since \x1A would represent 1 byte and any character without \x is a byte on its own?

closed as off-topic by Anders, schroeder Sep 21 '16 at 20:40

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about Information security within the scope defined in the help center." – Anders, schroeder
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    I'm not sure how this is a security question – schroeder Sep 21 '16 at 20:40
0

\x1A,L,\xD2,3,k,\xCA,\x1D,\xD7. 8 bytes.

The convention is that \x is followed by exactly two characters base 16 that together denote the byte value. You might want to check out C escape sequeces.

Not the answer you're looking for? Browse other questions tagged or ask your own question.