View start_latest.py
#!/usr/bin/python3 | |
# Copyright (C) 2019 0x9fff00 | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
View sha3_256_sum.py
import hashlib, sys | |
sha3_256 = hashlib.sha3_256() | |
with open(sys.argv[1], 'rb') as f: | |
for chunk in iter(lambda: f.read(4096), b''): | |
sha3_256.update(chunk) | |
print(sha3_256.hexdigest()) |