hashing fixed

py3
Felix Pankratz 5 years ago
parent 299c4ccc96
commit dbfccdf023

@ -281,7 +281,7 @@ def hashPrompt():
hasher.update(content) hasher.update(content)
else: else:
inputString = input('Please input a string: ') inputString = input('Please input a string: ')
hasher.update(inputString) hasher.update(inputString.encode('utf-8'))
print(hasher.hexdigest()) print(hasher.hexdigest())
print('Welcome aboard PankiCrypt Airlines!') print('Welcome aboard PankiCrypt Airlines!')

Loading…
Cancel
Save