start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
start [2018/03/31 22:11] – rlunaro | start [2020/01/22 07:27] – rlunaro | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | < | ||
+ | import hashlib | ||
+ | import sys | ||
+ | |||
+ | with open(sys.argv[1], | ||
+ | file_hash = hashlib.md5() | ||
+ | while chunk := f.read(8192): | ||
+ | file_hash.update(chunk) | ||
+ | |||
+ | print(file_hash.hexdigest()) | ||
+ | </ | ||
These pages are a notepad with notes about technology and other stuff. | These pages are a notepad with notes about technology and other stuff. |
start.txt · Last modified: 2023/06/21 08:46 by rlunaro