From dbfccdf023c13c8f59081b2289dc5b724ff48b6a Mon Sep 17 00:00:00 2001 From: Felix Pankratz Date: Wed, 26 Feb 2020 19:45:40 +0100 Subject: [PATCH] hashing fixed --- crypttool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypttool.py b/crypttool.py index 1672f70..dd77b0b 100644 --- a/crypttool.py +++ b/crypttool.py @@ -281,7 +281,7 @@ def hashPrompt(): hasher.update(content) else: inputString = input('Please input a string: ') - hasher.update(inputString) + hasher.update(inputString.encode('utf-8')) print(hasher.hexdigest()) print('Welcome aboard PankiCrypt Airlines!')