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:
-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