Removed SHA-512 from exec hashes

This commit is contained in:
Shay Nehmad 2019-10-07 14:12:06 +03:00
parent e0f4d1ed83
commit 3b7b0f0998
1 changed files with 1 additions and 2 deletions

View File

@ -108,9 +108,8 @@ class MonkeyDownload(flask_restful.Resource):
if os.path.isfile(filepath): if os.path.isfile(filepath):
with open(filepath, 'rb') as monkey_exec_file: with open(filepath, 'rb') as monkey_exec_file:
file_contents = monkey_exec_file.read() file_contents = monkey_exec_file.read()
logger.debug("{} hashes:\nSHA-512 {}\nSHA-256 {}".format( logger.debug("{} hashes:\nSHA-256 {}".format(
filename, filename,
hashlib.sha512(file_contents).hexdigest(),
hashlib.sha256(file_contents).hexdigest() hashlib.sha256(file_contents).hexdigest()
)) ))
else: else: