This commit is contained in:
dami
2025-09-11 16:38:30 +08:00
parent b1e8b4eb11
commit 554b4047b9
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -432,7 +432,7 @@ def hasPwd(password):
# return crypt.crypt(password, password)
import bcrypt
salt = bcrypt.gensalt()
return bcrypt.hashpw(password.encode('utf-8'), salt)
return str(bcrypt.hashpw(password.encode('utf-8'), salt))
def getFileMd5(filename):