diff options
author | Jan Klass <kissaki@posteo.de> | 2020-10-03 22:23:00 +0300 |
---|---|---|
committer | Jan Klass <kissaki@posteo.de> | 2020-10-03 22:23:00 +0300 |
commit | 9e0cb241dc66781783ea7f3d6ef646f9efaa0018 (patch) | |
tree | 444e3460be6064c96816dcd5bd1dbc9e42a0926c | |
parent | bc0c85dcaa3c93a6ffbad44a321a8da42a73e0b3 (diff) |
Fix username+password hashingf/smfauth-python3
-rwxr-xr-x | Authenticators/SMF/2.0/smfauth.py | 2 |
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 |