aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/hmac.py
diff options
context:
space:
mode:
authorAlexanderlacuna2020-10-29 16:14:32 +0300
committerAlexanderlacuna2020-10-29 16:14:32 +0300
commit480217fdde68589ad84799c3b5df2c61608494ad (patch)
treea39c1be021bfe59869435ea97cfb93890609a2a0 /wqflask/utility/hmac.py
parent18304a9b20bd4180b40be8296df26c2a0acf62fa (diff)
parent6e6911b466c2727b16a190d8b714f55d7842d7e2 (diff)
downloadgenenetwork2-480217fdde68589ad84799c3b5df2c61608494ad.tar.gz
Merge branch 'testing' of https://github.com/genenetwork/genenetwork2 into test-branch
Diffstat (limited to 'wqflask/utility/hmac.py')
-rw-r--r--wqflask/utility/hmac.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/hmac.py b/wqflask/utility/hmac.py
index 6623f69a..29891677 100644
--- a/wqflask/utility/hmac.py
+++ b/wqflask/utility/hmac.py
@@ -10,7 +10,7 @@ def hmac_creation(stringy):
"""Helper function to create the actual hmac"""
secret = app.config['SECRET_HMAC_CODE']
- hmaced = hmac.new(bytearray(secret, "utf-8"),
+ hmaced = hmac.new(bytearray(secret, "latin-1"),
bytearray(stringy, "utf-8"),
hashlib.sha1)
hm = hmaced.hexdigest()