diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-04-01 01:05:53 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-04-01 01:05:53 +0200 |
| commit | bb5f8a9fe7f3968588b45eeaa0c993ef314ca904 (patch) | |
| tree | 2535fae43c4937ae45357a4e8108ad355220e5c4 /cli/app/utils/util.py | |
| parent | 2b407d1f4a608d0ac23592ff16def77797e4fa41 (diff) | |
begin bridge
Diffstat (limited to 'cli/app/utils/util.py')
| -rw-r--r-- | cli/app/utils/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |
