From bb5f8a9fe7f3968588b45eeaa0c993ef314ca904 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 1 Apr 2020 01:05:53 +0200 Subject: begin bridge --- cli/app/utils/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/app/utils/util.py') diff --git a/cli/app/utils/util.py b/cli/app/utils/util.py index 5f72088..08992c7 100644 --- a/cli/app/utils/util.py +++ b/cli/app/utils/util.py @@ -1,9 +1,9 @@ import simplejson as json -from hashlib import sha256 +import hashlib def sha256(s): sha256 = hashlib.sha256() - sha256.update(s) + sha256.update(str.encode(s)) return sha256.hexdigest() def read_json(fn): -- cgit v1.2.3-70-g09d2