From f4432615f6978fca0e4bba29242350f959740c70 Mon Sep 17 00:00:00 2001
From: Ben Adida <ben@adida.net>
Date: Mon, 22 Feb 2021 03:14:18 +0000
Subject: [PATCH] hash utility should return an ascii string by default, was
 previously hidden by too-smart django rendering which is no longer the case.

---
 helios/crypto/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helios/crypto/utils.py b/helios/crypto/utils.py
index d854c88..2fcce30 100644
--- a/helios/crypto/utils.py
+++ b/helios/crypto/utils.py
@@ -27,5 +27,5 @@ def hash_b64(s):
     removes the trailing "="
     """
     hasher = SHA256.new(s.encode('utf-8'))
-    result = base64.b64encode(hasher.digest())[:-1]
+    result = base64.b64encode(hasher.digest())[:-1].decode('ascii')
     return result
-- 
GitLab