Update mw.py

This commit is contained in:
dami 2025-09-11 16:45:30 +08:00
parent eca95c36dd
commit a5ee38d4fd
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ def hasPwd(password):
import bcrypt
salt = bcrypt.gensalt()
hpw = bcrypt.hashpw(password.encode('utf-8'), salt)
return hpw.encode('utf-8')
return hpw.decode('utf-8')
def getFileMd5(filename):