increase bcrypt difficulty

This commit is contained in:
Sergey Chubaryan 2025-02-20 06:52:10 +03:00
parent 5bcfd95cb3
commit b816154e3b
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ type passwordUtil struct {
}
func (b *passwordUtil) Hash(password string) (string, error) {
bytes, _ := bcrypt.GenerateFromPassword([]byte(password), 8) //bcrypt.DefaultCost)
bytes, _ := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost)
return string(bytes), nil
}

View File

@ -7,5 +7,5 @@ class ShortlinkCreate(FastHttpUser):
self.api = BackendApi(self.client)
@task
def user_create_test(self):
def shortlink_create_test(self):
self.api.shortlink_create("https://example.com")