Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aboutcode-org/scancode-toolkit
/ sha1
Function
sha1
src/commoncode/hash.py:263–264 ·
view source on GitHub ↗
(location)
Source
from the content-addressed store, hash-verified
261
262
263
def
sha1(location):
264
return
checksum(location, name=
"sha1"
, base64=False)
265
266
267
def
b64sha1(location):
Callers
7
test_sha1_checksum_on_text
Method · 0.90
test_sha1_checksum_on_text2
Method · 0.90
test_sha1_checksum_on_dos_text
Method · 0.90
test_sha1_checksum
Method · 0.90
get_uuid_on_content
Function · 0.85
_unique_id
Method · 0.85
tokens_hash
Function · 0.85
Calls
1
checksum
Function · 0.85
Tested by
4
test_sha1_checksum_on_text
Method · 0.72
test_sha1_checksum_on_text2
Method · 0.72
test_sha1_checksum_on_dos_text
Method · 0.72
test_sha1_checksum
Method · 0.72