5

I am stuck in this video. Please solve this issue.

This video is about Encryption and Decryption using Win32 API.

https://www.youtube.com/watch?v=OQuRwpUTBpQ

In this video 27:07 it's saying "10 IS HEX 5 bytes?" But how?

Please watch this video to understand?

2
  • 1
    This means 10 is the length of ASCII string in which every char relates a nibble (half byte in hex).
    – strannyi
    Commented Jan 11, 2023 at 8:17
  • 1
    The wording is awkward. He's say that given a hexadecimal string, 10 characters in that string represent 5 bytes.
    – chepner
    Commented Jan 11, 2023 at 16:49

1 Answer 1

5

The length of 10 is simply the number of characters selected. Each hexadecimal digit requires 4 bits (0..F). So 10 hexadecimal digits take 40 bits (4 bits x 10) or 5 bytes (8 bits x 5).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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