From 0f7d844dda59db1ce3b47c73cc91592f7493bd45 Mon Sep 17 00:00:00 2001 From: joe-arriaga Date: Sat, 26 Jan 2019 12:05:07 -0800 Subject: [PATCH] Update hasher.py --- back/reimbursinator/policies/hasher.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/back/reimbursinator/policies/hasher.py b/back/reimbursinator/policies/hasher.py index 4500b23..c831986 100644 --- a/back/reimbursinator/policies/hasher.py +++ b/back/reimbursinator/policies/hasher.py @@ -2,26 +2,26 @@ import hashlib hasher = hashlib.md5() with open ('simple_policy.py', 'rb') as afile: - buf = afile.read() - hasher.update(buf) + 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) + 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) + 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) + buf = afile.read() + hasher.update(buf) print("sha1 of moderate: " + hasher.hexdigest())