You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Password hash natives uses bcrypt under the hood, bcrypt is designed to be slow the issue is not that it is slow, the issue is that calling password hashing natives will make the server thread hitch during the operations.
Maybe providing async alternatives natives and executing bcrypt operations in another thread would be a viable solution.
Expected result
No server thread hitch.
Reproduction steps
Execute a server-side script containing this :
RegisterCommand('testpass', function()
localpass='MyVeryStrongPassword123'localtimeNow=GetGameTimer()
localpassHash=GetPasswordHash(pass)
VerifyPasswordHash(pass, passHash)
print(('%u ms elapsed during password operations'):format(GetGameTimer() -timeNow))
end, false)
Type testpass in Console and see the output.
Importancy
Slight inconvenience
Area(s)
FXServer, Natives
Specific version(s)
Tested on Server 8867 and olders (this issue has been here for years)
Additional information
No response
The text was updated successfully, but these errors were encountered:
What happened?
Password hash natives uses bcrypt under the hood, bcrypt is designed to be slow the issue is not that it is slow, the issue is that calling password hashing natives will make the server thread hitch during the operations.
Maybe providing async alternatives natives and executing bcrypt operations in another thread would be a viable solution.
Expected result
No server thread hitch.
Reproduction steps
testpass
in Console and see the output.Importancy
Slight inconvenience
Area(s)
FXServer, Natives
Specific version(s)
Tested on Server 8867 and olders (this issue has been here for years)
Additional information
No response
The text was updated successfully, but these errors were encountered: