aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2020-03-03 15:38:23 -0600
committerzsloan2020-03-03 15:38:23 -0600
commit6709e87e7e607622d466544765686b0a3ec44b30 (patch)
tree1183de19d23fb2ad6c3769d3d6aca7a9f39450c8 /wqflask
parentcf49e1ea02568fa9b31505c08e68baf844703c15 (diff)
downloadgenenetwork2-6709e87e7e607622d466544765686b0a3ec44b30.tar.gz
And needed to remove duplicate hmac file; I somehow didn't notice that only one of those needed to be used
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/hmac_func.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/wqflask/wqflask/hmac_func.py b/wqflask/wqflask/hmac_func.py
deleted file mode 100644
index 361c35b6..00000000
--- a/wqflask/wqflask/hmac_func.py
+++ /dev/null
@@ -1,19 +0,0 @@
-from __future__ import print_function, division, absolute_import
-
-import hashlib
-import hmac
-
-from wqflask import app
-
-def hmac_creation(stringy):
- """Helper function to create the actual hmac"""
-
- secret = app.config['SECRET_HMAC_CODE']
-
- hmaced = hmac.new(secret, stringy, hashlib.sha1)
- hm = hmaced.hexdigest()
- # ZS: Leaving the below comment here to ask Pjotr about
- # "Conventional wisdom is that you don't lose much in terms of security if you throw away up to half of the output."
- # http://www.w3.org/QA/2009/07/hmac_truncation_in_xml_signatu.html
- hm = hm[:20]
- return hm \ No newline at end of file