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

Method intdigest

src/commoncode/hash.py:96–100  ·  view source on GitHub ↗

Return a int digest for this hash.

(self)

Source from the content-addressed store, hash-verified

94 return self.msg_len and urlsafe_b64encode(self.digest()).decode("utf-8")
95
96 def intdigest(self):
97 """
98 Return a int digest for this hash.
99 """
100 return self.msg_len and int(bin_to_num(self.digest()))
101
102
103# for FIPS support, we declare that "usedforsecurity" is False

Callers

nothing calls this directly

Calls 2

digestMethod · 0.95
bin_to_numFunction · 0.90

Tested by

no test coverage detected