mirror of https://github.com/CIRCL/lookyloo
Generating correct hashes
parent
93dac1f479
commit
81fb9db3cf
|
@ -17,7 +17,8 @@ logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
|
||||||
def compute_hash_self():
|
def compute_hash_self():
|
||||||
m = hashlib.sha256()
|
m = hashlib.sha256()
|
||||||
with (get_homedir() / 'bin' / 'update.py').open('rb') as f:
|
with (get_homedir() / 'bin' / 'update.py').open('rb') as f:
|
||||||
return m.update(f.read())
|
m.update(f.read())
|
||||||
|
return m.digest()
|
||||||
|
|
||||||
|
|
||||||
def keep_going(ignore=False):
|
def keep_going(ignore=False):
|
||||||
|
|
Loading…
Reference in New Issue