Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble-scripts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Klass <kissaki@posteo.de>2020-10-03 22:23:00 +0300
committerJan Klass <kissaki@posteo.de>2020-10-03 22:23:00 +0300
commit9e0cb241dc66781783ea7f3d6ef646f9efaa0018 (patch)
tree444e3460be6064c96816dcd5bd1dbc9e42a0926c
parentbc0c85dcaa3c93a6ffbad44a321a8da42a73e0b3 (diff)
Fix username+password hashingf/smfauth-python3
-rwxr-xr-xAuthenticators/SMF/2.0/smfauth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Authenticators/SMF/2.0/smfauth.py b/Authenticators/SMF/2.0/smfauth.py
index 2f20121..fb428f4 100755
--- a/Authenticators/SMF/2.0/smfauth.py
+++ b/Authenticators/SMF/2.0/smfauth.py
@@ -805,7 +805,7 @@ def smf_check_hash(password, hash, username):
"""
Python implementation of the smf check hash function
"""
- return sha1(username.lower().encode('utf8') + password).hexdigest() == hash
+ return sha1((username.lower() + password).encode('utf-8')).hexdigest() == hash
#
#--- Start of program