Comment on Your birthdate in the decimal expansion of PiparentComments−myrmidon12y(buf[i]&0xf0) >> 8 would be zero (always).One hex digit (0x0f) is 4 bits wide, not 8 (one byte <=> two hex digits).
Comments
(buf[i]&0xf0) >> 8 would be zero (always).
One hex digit (0x0f) is 4 bits wide, not 8 (one byte <=> two hex digits).