Calculating symmetric key bit strength 16 byte key where each byte is in range 0-255, generated using cryptograhic PRNG will be believed to have 128 bit strength.
What would be a bit strength of a key generated using same quality PRNG, also of 16 byte length, if each byte instead of being one of 256 random values, would be one of 16 hexadecimal characters?
Would that be calculated as (128 x 16) / 256 = 8 bit?
One hexadecimal digit is equivalent to 4 bits, so 16 of them would be 16 * 4 = 64 bits.
Intuitively, since one hexadecimal digit takes up exactly half an octet, your bit strength compared to using the full octet is also halved, so 128 / 2 = 64.