Skip to content

Instantly share code, notes, and snippets.

View 0x9fff00's full-sized avatar

August Wikerfors 0x9fff00

  • Stockholm, Sweden
View GitHub Profile
@0x9fff00
0x9fff00 / sha3_256_sum.py
Created February 25, 2017 16:49
Python SHA3-256
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())
#!/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: