diff options
author | Alexanderlacuna | 2020-10-29 16:14:32 +0300 |
---|---|---|
committer | Alexanderlacuna | 2020-10-29 16:14:32 +0300 |
commit | 480217fdde68589ad84799c3b5df2c61608494ad (patch) | |
tree | a39c1be021bfe59869435ea97cfb93890609a2a0 /wqflask/utility | |
parent | 18304a9b20bd4180b40be8296df26c2a0acf62fa (diff) | |
parent | 6e6911b466c2727b16a190d8b714f55d7842d7e2 (diff) | |
download | genenetwork2-480217fdde68589ad84799c3b5df2c61608494ad.tar.gz |
Merge branch 'testing' of https://github.com/genenetwork/genenetwork2 into test-branch
Diffstat (limited to 'wqflask/utility')
-rw-r--r-- | wqflask/utility/hmac.py | 2 |
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() |