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!')