hexdigest

A hash result written as a string of hexadecimal characters, returned by the hexdigest() method of a hashlib object.

In more detail

Each hexadecimal character stands for four bits, so a SHA-256 hexdigest is 64 characters long. Taking the first few characters gives a short but still well-spread identifier. Converting it with int(digest, 16) turns it into a large integer you can reduce modulo a table size.

Related terms

Taught in

References