From 85b2f264ad853b07d440bb6410ab48972c0ea829 Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Mon, 7 Sep 2020 08:27:15 +0100 Subject: [PATCH] finally! abolishing private key property --- komrade/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/komrade/utils.py b/komrade/utils.py index 156017c..d689e8d 100644 --- a/komrade/utils.py +++ b/komrade/utils.py @@ -51,7 +51,9 @@ def isBase64(sb): - +def hashish(binary_data): + import hashlib + return hashlib.sha256(binary_data).hexdigest()