MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / digest

Method digest

src/commoncode/hash.py:76–82  ·  view source on GitHub ↗

Return a bytes string digest for this hash.

(self)

Source from the content-addressed store, hash-verified

74 """
75
76 def digest(self):
77 """
78 Return a bytes string digest for this hash.
79 """
80 if not self.msg_len:
81 return
82 return self.binh.digest()[: self.digest_size]
83
84 def hexdigest(self):
85 """

Callers 6

hexdigestMethod · 0.95
b64digestMethod · 0.95
intdigestMethod · 0.95
tokens_hashFunction · 0.80
initializeMethod · 0.80
rand_dataMethod · 0.80

Calls

no outgoing calls

Tested by 1

rand_dataMethod · 0.64