Update hasher.py
This commit is contained in:
parent
368bc0964c
commit
0f7d844dda
1 changed files with 8 additions and 8 deletions
|
@ -2,26 +2,26 @@ import hashlib
|
||||||
|
|
||||||
hasher = hashlib.md5()
|
hasher = hashlib.md5()
|
||||||
with open ('simple_policy.py', 'rb') as afile:
|
with open ('simple_policy.py', 'rb') as afile:
|
||||||
buf = afile.read()
|
buf = afile.read()
|
||||||
hasher.update(buf)
|
hasher.update(buf)
|
||||||
print("md5 of simple: " + hasher.hexdigest())
|
print("md5 of simple: " + hasher.hexdigest())
|
||||||
|
|
||||||
hasher = hashlib.md5()
|
hasher = hashlib.md5()
|
||||||
with open ('moderate_policy.py', 'rb') as afile:
|
with open ('moderate_policy.py', 'rb') as afile:
|
||||||
buf = afile.read()
|
buf = afile.read()
|
||||||
hasher.update(buf)
|
hasher.update(buf)
|
||||||
print("md5 of moderate: " + hasher.hexdigest())
|
print("md5 of moderate: " + hasher.hexdigest())
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
hasher = hashlib.sha1()
|
hasher = hashlib.sha1()
|
||||||
with open ('simple_policy.py', 'rb') as afile:
|
with open ('simple_policy.py', 'rb') as afile:
|
||||||
buf = afile.read()
|
buf = afile.read()
|
||||||
hasher.update(buf)
|
hasher.update(buf)
|
||||||
print("sha1 of simple: " + hasher.hexdigest())
|
print("sha1 of simple: " + hasher.hexdigest())
|
||||||
|
|
||||||
hasher = hashlib.sha1()
|
hasher = hashlib.sha1()
|
||||||
with open ('moderate_policy.py', 'rb') as afile:
|
with open ('moderate_policy.py', 'rb') as afile:
|
||||||
buf = afile.read()
|
buf = afile.read()
|
||||||
hasher.update(buf)
|
hasher.update(buf)
|
||||||
print("sha1 of moderate: " + hasher.hexdigest())
|
print("sha1 of moderate: " + hasher.hexdigest())
|
||||||
|
|
Loading…
Reference in a new issue