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?

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

1 Answers1

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).

0xC0000022L
  • 10,908
  • 9
  • 41
  • 79
Mega Tonnage
  • 796
  • 1
  • 5