Search code examples
hashcharacter-encodingcharactersalt-cryptographyoctal

Difference between 'character' and 'octet' in hashing


I see the term 'octet' popping up in literature about nonces for hashing, and it seems to be synonymous with 'character', although there is a kind of pattern to how the words are used.

This leads me to believe that there is a formal distinction between the two. If anyone could enlighten me to what it is, I'd appreciate it.

(and please, no lectures about octal character codes or octal (base 8) numbers; I'm talking about the noun 'octet', not the adjective)

EDIT: as it turns out, the word I was looking for, is 'octet'.


Solution

  • You are probably thinking about the term octet that is often used to be synonymous with a single-byte (non-unicode) character. Octet in this instance means eight bits. A character can be eight or sixteen or even more bits, but an octet is always eight bits.