Created example policy config files. Added my name to the README.
This commit is contained in:
parent
7bfe8a44ea
commit
609eab2ca0
2 changed files with 28 additions and 1 deletions
|
@ -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
|
||||
|
|
27
back/reimbursinator/policies/hasher.py
Normal file
27
back/reimbursinator/policies/hasher.py
Normal 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())
|
Loading…
Reference in a new issue