Created example policy config files. Added my name to the README.

This commit is contained in:
Joe Arriaga 2019-01-20 13:59:03 -08:00
parent 7bfe8a44ea
commit 609eab2ca0
2 changed files with 28 additions and 1 deletions

View file

@ -2,4 +2,4 @@
Open source expense management solution
Daniel Dupriest, Logan Miller, Jack, Joe, Preston, Rupika, Liang Shuaiyi
Daniel Dupriest, Logan Miller, Jack, Joe Arriaga, Preston, Rupika, Liang Shuaiyi

View file

@ -0,0 +1,27 @@
import hashlib
hasher = hashlib.md5()
with open ('simple_policy.py', 'rb') as afile:
buf = afile.read()
hasher.update(buf)
print("md5 of simple: " + hasher.hexdigest())
hasher = hashlib.md5()
with open ('moderate_policy.py', 'rb') as afile:
buf = afile.read()
hasher.update(buf)
print("md5 of moderate: " + hasher.hexdigest())
hasher = hashlib.sha1()
with open ('simple_policy.py', 'rb') as afile:
buf = afile.read()
hasher.update(buf)
print("sha1 of simple: " + hasher.hexdigest())
hasher = hashlib.sha1()
with open ('moderate_policy.py', 'rb') as afile:
buf = afile.read()
hasher.update(buf)
print("sha1 of moderate: " + hasher.hexdigest())