mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 09:49:29 +02:00
support fips-cpython and maybe make-sfx on macos
This commit is contained in:
parent
ad18b6e15e
commit
f62dd0e3cc
4 changed files with 5 additions and 9 deletions
|
@ -213,11 +213,11 @@ def yieldfile(fn):
|
|||
|
||||
|
||||
def hashfile(fn):
|
||||
h = hashlib.md5()
|
||||
h = hashlib.sha1()
|
||||
for block in yieldfile(fn):
|
||||
h.update(block)
|
||||
|
||||
return h.hexdigest()
|
||||
return h.hexdigest()[:24]
|
||||
|
||||
|
||||
def unpack():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue